How can hide extra menus from Wordpress dashboard. That is some plugins gives plugin settings menu may under Settings or anywhere else, how we can hide all this type of extra menus while plugin active
3 Answers
Update
As the Answer wasn't best practice, I replace it with a link to my simple plugin that even does more than the OP needed. You can take it as reference on how to (re)move different things in the admin UI.
It's freely available Open Source Software. I encourage you to fork it.
Functionality
The Plugin removes:
- All Dashboard Widgets except for “Incoming Links”
- All built in taxonomies and leaves only the “nav-menu” taxonomy
- The built in post type “Post”
- Changes the option “show on front” to “pages”
- Changes the initial posts query to search for the page with the lowest ID
- All admin bar items and leaves only the site name that can be used to access the public view
- Admin Menu items and submenu items: Posts, Links, Comments
- The admin menu items for Plugin & Theme Editor
- All Settings admin menu items and replaces them with the “All Settings” Page and makes it only accessible for ‘manage_options’ capability
- Removes the “capitalPdangit” filter from content, title and comment text, in case you add those filter in CPT related stuff
Detailed Description & Download
WP Strip Naked
-
An easy way to find out the names is just to
print_r($wp_meta_boxes);
so you an see what to unset. Commented Oct 26, 2011 at 12:34
Check this Adminimize plugin with the help of this plugin you can customize the wordpress admin area.