Quick Tip: How to Remove Menu Item in WordPress Admin Panel

Prem Tiwari - - WordPress, WordPress Beginners, WordPress Snippets

Sometimes we worked with non-technical clients who don’t know more about the technology, so in that condition, we have to remove the unused menu items from WordPress Admin Panel. In this tutorial, I am going to share the quick tip to remove menu items in WordPress Admin panel by using the pre-defined WordPress functions.

There are two type of menu item in WordPress admin panel:

  1. Menu Items
  2. Submenu Items

There are separate functions are available to remove the menu items and submenu items. Be will find out both with the example below.

remove wordpress admin menu items

You can remove the unused Admin menu items by using the below code in your functions.php file. The unused admin menu item is depending on your client requirement. Open your functions.php file from your themes and add the below at the end of the file.


Below is the example how you can remove the admin menu items in your project:

Remove admin submenu items

If you want to remove the submenu only from admin panel, then use the remove_submenu_page() function. If you used remove_menu_page() function, then it will not work for submenu items.

Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer and a blogger by hobby.

Tags: , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.