| @@ -31,8 +31,12 @@ | ||
| 31 | 31 | esc_html__( 'Setup Wizard by Adminify', 'adminify' ), |
| 32 | 32 | esc_html__( 'Setup Wizard', 'adminify' ), |
| 33 | 33 | apply_filters( 'pxlbsadminify_capability', 'manage_options' ), |
| 34 | 34 | 'wp-adminify-setup-wizard', |
| 35 | + // The wizard renders (and exits) from setup_wizard() on admin_init, so this | |
| 36 | + // callback never runs. It must still be a callable: WP only links the submenu | |
| 37 | + // to admin.php?page=<slug> when get_plugin_page_hook() finds a registered action. | |
| 38 | + '__return_null', | |
| 35 | 39 | $submenu_position |
| 36 | 40 | ); |
| 37 | 41 | |
| 38 | 42 | add_dashboard_page('', '', 'manage_options', 'wp-adminify-setup-wizard', ''); |