Regain Access to ASE Settings Page

On rare occasions, you need to regain access to the ASE settings page at Tools >> Enhancements menu / admin page, because you accidentally set the Tools menu, or the Enhancements submenu to always be hidden for all site administrators via ASE's Admin Menu Organizer module. Here's how you can do that:
1. Install WP Console plugin to execute PHP code in a console in wp-admin.

2. Click on 'Console' in the admin bar to activate the PHP console.

3. Use the following code to reset the always-hidden parent menu settings, i.e. regain access to the Tools menu. Notice the custom_menu_always_hidden array key that is being unset from ASE saved options.
$ase_options = get_option( 'admin_site_enhancements' );
unset( $ase_options['custom_menu_always_hidden'] );
update_option( 'admin_site_enhancements', $ase_options );
4. Or, use the following code to reset the always hidden submenu setinggs. i.e. regain access to the Tools >> Enhancements subemnu. Notice the custom_submenu_always_hidden array key in use.
$ase_options = get_option( 'admin_site_enhancements' );
unset( $ase_options['custom_submenu_always_hidden'] );
update_option( 'admin_site_enhancements', $ase_options );
5. Note that the "Always hide" settings in Admin Menu Organizer for parent menu / submenu items will be reset after the above procedure. So, you'll need to reconfigure them from scratch.
Lifetime License
Available

Year-end sale!... Get 20% discount with YEAREND2024 promo code at checkout

chevron-up