Skip to content

Instantly share code, notes, and snippets.

@eyecandy91
Created August 23, 2016 12:26
Show Gist options
  • Save eyecandy91/7395dbfdf4450278781fd645e299b4bb to your computer and use it in GitHub Desktop.
Save eyecandy91/7395dbfdf4450278781fd645e299b4bb to your computer and use it in GitHub Desktop.
remove the annoying customizer admin panel
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