Created
October 7, 2014 16:55
-
-
Save jptksc/95be1a6cfa09df7d1cfd to your computer and use it in GitHub Desktop.
Clean the WP admin.
This file contains hidden or 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
// Clean the admin. | |
function pk_clean_admin () { | |
remove_menu_page('edit.php'); | |
remove_menu_page('upload.php'); | |
remove_menu_page('edit.php?post_type=page'); | |
remove_menu_page('edit-comments.php'); | |
remove_menu_page('options-general.php'); | |
remove_menu_page('tools.php'); | |
global $submenu; | |
unset($submenu['themes.php'][6]); | |
} | |
add_action('admin_menu', 'pk_clean_admin'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment