-
Home
-
Aquila Admin Theme
- Tips
How to Hide the "Aquila" Admin Menu
function plt_hide_aquila_admin_theme_menus() {
//Hide the "Settings → Aquila" menu.
remove_submenu_page('options-general.php', 'aquilaSettings');
}
add_action('admin_menu', 'plt_hide_aquila_admin_theme_menus', 11);
Where do I put this code?
How to Hide Aquila Admin Theme Dashboard Widgets
function plt_hide_aquila_admin_theme_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Test site" widget.
remove_meta_box('welcome-to-aquila', 'dashboard', 'normal');
//Remove the "Plugin Support" widget.
remove_meta_box('aquila-plugin-support', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_aquila_admin_theme_dashboard_widgets', 20);