diff --git a/includes/wizards/class-listings-wizard.php b/includes/wizards/class-listings-wizard.php index a88f77acb..289845d29 100644 --- a/includes/wizards/class-listings-wizard.php +++ b/includes/wizards/class-listings-wizard.php @@ -53,7 +53,7 @@ class Listings_Wizard extends Wizard { * * @var int */ - public $menu_order = 2; + public $menu_order = 3; /** * Constructor. @@ -99,7 +99,6 @@ public function __construct() { * Replaces Listings Plugin's 'admin_menu' action => Newspack_Listings\Core => 'add_plugin_page' */ public function add_page() { - // Top-level menu item. add_menu_page( __( 'Newspack Listings', 'newspack-plugin' ), @@ -120,7 +119,6 @@ public function add_page() { 'newspack-listings-settings-admin', [ Newspack_Listings_Settings::class, 'create_admin_page' ] ); - } } diff --git a/includes/wizards/class-wizard.php b/includes/wizards/class-wizard.php index 976c81cad..155d55c3e 100644 --- a/includes/wizards/class-wizard.php +++ b/includes/wizards/class-wizard.php @@ -70,7 +70,7 @@ abstract class Wizard { * $my_wizard = new My_Wizard( [ 'sections' => [ 'my-wizard-section' => 'Newspack\Wizards\My_Wizard\My_Wizard_Section' ] ] ); */ public function __construct( $args = [] ) { - add_action( 'admin_menu', [ $this, 'add_page' ], 2 ); + add_action( 'admin_menu', [ $this, 'add_page' ] ); add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_scripts_and_styles' ] ); if ( isset( $args['sections'] ) ) { $this->load_wizard_sections( $args['sections'] );