How to automatically redirect to custom admin menu after plugin activation?

Question

I need a function to redirect user to the plugin settings page, right after plugin activation.

I use this function to create a custom menu settings page:

// add option page menu link
function axl_ads_add_admin_menu() { 
    $icon = 'dashicons-align-left"';
      add_menu_page( 'AXL Ads', 'AXL Ads', 'manage_options', 'axl_ads',  array($this, 'axl_ads_options_page'), $icon, '3' );
  }

And my settings page url is: wp-admin/admin.php?page=axl_ads

Any help with this, please?

0
, Knott 4 years 2020-03-10T12:51:05-05:00 0 Answers 108 views 0

Leave an answer

Browse
Browse