-
-
Save eyecandy91/7395dbfdf4450278781fd645e299b4bb to your computer and use it in GitHub Desktop.
remove the annoying customizer admin panel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function as_remove_menus () { | |
remove_menu_page('upload.php'); //hide Media | |
remove_menu_page('link-manager.php'); //hide links | |
remove_submenu_page( 'edit.php', 'edit-tags.php' ); //hide tags | |
global $submenu; | |
// Appearance Menu | |
unset($submenu['themes.php'][6]); // Customize | |
} | |
add_action('admin_menu', 'as_remove_menus'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment