Allows easy removal of menu links, submenu links, and dashboard widgets from the WordPress Admin Panel.
To use this plugin, install it activate it like you would any other plugin. Then open up your wp-config.php file. Right above the line that says
That's all, stop editing! Happy blogging. put in lines like the following:
define('SAP_REMOVE_THESE_MENUS', 'Dashboard, Posts, Media, Pages, Comments, Appearance, plugins, users, tools, settings'); define('SAP_REMOVE_THESE_SUBMENUS', 'Tools|Available Tools, users|all users, Add New'); define('SAP_REMOVE_THESE_DASHBOARD_BOXES', 'Right Now, Recent Comments, Incoming Links, Plugins, quickpress, recent drafts, wordpress blog, other wordpress news');
Change the values in the comma-separated list to match the exact menu links, submenu links, and dashboard boxes that you'd like to remove. Note that the list is not case-sensitive, and spacing around the commas is ignored.
If you don't need some of the functionality, you can just omit that line entirely. For instance, if you don't need to remove any menu links, just remove the
define('SAP_REMOVE_THESE_SUBMENUS', ... ) line.
You can also remove menu and submenu items by their URL, and dashboard boxes by their ID. For example, these lines:
define('SAP_REMOVE_THESE_MENUS', 'Pages, Tools'); define('SAP_REMOVE_THESE_SUBMENUS', 'Plugins|Editor, Posts|Categories'); define('SAP_REMOVE_THESE_DASHBOARD_BOXES', 'Recent Comments, Plugins');
are equivalent to
define('SAP_REMOVE_THESE_MENUS', 'edit.php?post_type=page, tools.php'); define('SAP_REMOVE_THESE_SUBMENUS', 'plugin-editor.php, edit-tags.php?taxonomy=category'); define('SAP_REMOVE_THESE_DASHBOARD_BOXES', 'dashboard_recent_comments, dashboard_plugins');
Requires: 3.3 or higher
Compatible up to: 3.5.2
Last Updated: 3 years ago
Active Installs: 20+
Got something to say? Need help?