When creating WordPress websites for clients I like to remove features that will not be used to prevent confusion and questions. For example, allot of WordPress website I create do not contain a blog and therefore have no ‘Posts’ menu item.
Removing a menu item is easy, if you for example would like to remove the ‘Posts’ menu item you simply add the following code to your project (for example to your theme’s functions.php).
add_action('admin_menu', 'remove_options'); function remove_options() { remove_menu_page( 'edit.php' ); }
You can delete any admin menu item this way, all you need to do is add the php file as argument to the ‘remove_menu_page’ function. So if you delete the ‘Posts’ menu item like I did in the example above you most likely also want to delete the menu item ‘Comments’. Following code will remove both.
add_action('admin_menu', 'remove_options'); function remove_options() { remove_menu_page( 'edit.php' ); remove_menu_page( 'edit-comments.php' ); }
Please note that the ‘remove_menu_page’ function does not disable or restrict access to the removed page, it only removes the menu item. In many cases this will do, but always keep security in mind.
Sir How to delete newsletter Tab created in Menu Bar ?
How to remove Archives, Author,Tags and others unwanted URLS?
Really, brother, it’s working for me thanks for sharing and brief info… appreciated
i was looking for this thanks
This article helps me a lot. I was looking for this one.
Very informative article for me. These wordpress plugins are very helful for sure.
Sir this information is very helpful for me thankyou for a sharing
I requested WooCommerce to change their setup, so it is possible to manage authorisations for their part of the menu. The idea needs votes on https://ideas.woocommerce.com/forums/133476-woocommerce/suggestions/39069922-woocommerce-should-not-reveal-an-overview-of-all-p Please give it your maximum 3 points, thanks!
Really, brother, it’s working for me thanks for sharing and brief info… appreciated
Thanks, Bro… for sharing this knowledge with us. it’s very useful for me. thanks.
thank you for share… it’s working on my WordPress website.
today i learn something new, Thank you so much for this valuable content. .
Bro itss working amazing thankss for sharing
thanks for nice article
Nice method for quickly removing unwanted WordPress menu items!
nice method i was searching for this method for so long
Very Informative article. Thank you so much for sharing.
Nice post bro ??
How to remove Archives, Author,Tags and others unwanted URLS?
Hi,
Really Helpful post actually…..!!
Thanks for sharing this informative content with us.