There are a number of reasons for wanting to simplify the WordPress admin menu, perhaps you are a developer and have handed a new site over to the client and you don’t want to overwhelm them with options. The WordPress admin can be a little complicated if you are new to it and by removing options that are not needed for the function of their site you can make the transition to the CMS a little easier. Maybe you have a lot of plugins or custom post types so you want to remove the unused links to shorten your menu for ease of use.

Whatever the reason, its pretty easy to remove items so is this quick tip I will show you how to remove WordPress admin menu Items.

Adding this function to your theme’s functions.php will remove all menu items

function remove_menus(){
  remove_menu_page( 'index.php' );                  //Dashboard
  remove_menu_page( 'edit.php' );                   //Posts
  remove_menu_page( 'upload.php' );                 //Media
  remove_menu_page( 'edit.php?post_type=page' );    //Pages
  remove_menu_page( 'edit-comments.php' );          //Comments
  remove_menu_page( 'themes.php' );                 //Appearance
  remove_menu_page( 'plugins.php' );                //Plugins
  remove_menu_page( 'users.php' );                  //Users
  remove_menu_page( 'tools.php' );                  //Tools
  remove_menu_page( 'options-general.php' );        //Settings 
}
add_action( 'admin_menu', 'remove_menus' );

If you just want to remove one item, for example the settings menu, use this code :

function remove_menus(){
  remove_menu_page( 'options-general.php' );        //Settings 
}
add_action( 'admin_menu', 'remove_menus' );

You could also use this method to remove menus created by plugins you need to click on the menu item to get its URL the copy the last part into the function above. For example, to hide a portfolio post type with the URL:

http://yourdomain.com/wp-admin/edit.php?post_type=portfolio

You would use :

function remove_menus(){
  remove_menu_page( 'edit.php?post_type=portfolio' );
}
add_action( 'admin_menu', 'remove_menus' );

Author:

Oliver Dale is the founder of Kooc Media, An Internet Company based in Manchester, UK. I founded WPLift and ThemeFurnace, find out more on my Personal Blog. Thanks!

Siteground Hosting
Does WPLift load fast for you? That’s because we use Siteground for hosting, WPLift readers can click here to get up to 60% off hosting for your site.

Disclosure: This page may contain affiliate links for which we will receive compensation if a purchase is made.

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Leave Yours +

3 Comments

  1. Thank for the tip,I had lots of menus almost unnecessary created by plugins.

  2. For those skittish about using code in a functions.php file (where one misplaced character can blank out your whole website), my favorite plugin to do this kind of work has been Adminimize: https://wordpress.org/plugins/adminimize/

  • Comments are Closed

Our Sponsors

SEND ME FREE STUFF!

Join our Newsletter to Receive 6 Free WordPress Themes

We will also send you our weekly Newsletter packed with the Latest WordPress Content.

We will look after your email & Never Spam!

You have Successfully Subscribed!