How to automatically redirect to custom admin menu after plugin activation?
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?
Topic plugin-options plugins Wordpress
Category Web