Skip to content

Instantly share code, notes, and snippets.

@christoferw
Last active August 12, 2016 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christoferw/75a45bd61349e2b031e0a4d71d898f46 to your computer and use it in GitHub Desktop.
Save christoferw/75a45bd61349e2b031e0a4d71d898f46 to your computer and use it in GitHub Desktop.
Remove Admin Menu Items Fill List
if ( ! function_exists( 'weslink_remove_plugin_admin_menu' ) ) {
function weslink_remove_plugin_admin_menu() {
remove_menu_page('edit.php'); // Beiträge
remove_menu_page('edit.php?post_type=CustomPostType'); // Custom Post Types
remove_menu_page('upload.php'); // Medien
remove_menu_page('edit-comments.php'); // Kommentare
remove_menu_page('plugins.php'); // Plugins
remove_menu_page('themes.php'); // Design
remove_menu_page('users.php'); // Benutzer
remove_menu_page('tools.php'); // Werkzeuge
remove_menu_page('options-general.php'); // Einstellungen
remove_menu_page( 'jetpack' ); // Jetpack
remove_menu_page( 'index.php' ); // Dashboard
}
}
add_action( 'admin_menu', 'weslink_remove_plugin_admin_menu', 9999 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment