Remove unwanted sub-menus from WordPress Dashboard Menus

add_action( 'admin_init', 'adjust_the_wp_menu' );
function adjust_the_wp_menu()
{
   remove_submenu_page( 'themes.php', 'theme-editor.php' );
   remove_submenu_page( 'themes.php', 'nav-menus.php' );
   remove_submenu_page( 'themes.php', 'custom-background' );
}
Advertisements