Menu permissions are based on capabilities.Keep the following in mind when using the Admin Menu Editor plugin: You can play around with different settings and configurations to add, edit, and customize WordPress admin menus to your liking. Clicking on individual menu items displays options for that specific menu or submenu item. Click on top-level menu items to display submenu items.
To use this plugin, go to ‘Plugins’ > ‘Add New’, then install and activate the plugin from your WordPress dashboard ... Install and activate the Admin Menu Editor plugin.Īfter activating the plugin, go to ‘Settings’ > ‘Menu Editor’ to edit and configure the admin menu interface … Edit the admin menu interface.Īfter activating the plugin, drag and drop items in the Menu Editor screen to rearrange the menu layout.
For this, you’d be better off using a more comprehensive option that limits users based on roles and capabilities.įor example, if you are running a multi-author site or blog and don’t want to mess with code (or create the functionality plugin described above) but would like to edit a WordPress admin menu, hide the admin menu for specific users, or even add a custom admin menu in your WordPress dashboard, you can customize your WordPress admin menus for users based on their roles and capabilities via a drag and drop interface using the Admin Menu Editor plugin. That was easy, wasn’t it? Note that this only removes the items from the menu but it doesn’t prevent users from accessing those pages if they know where they are located. Customizing the Admin Menu Using a Plugin To restore the missing menu items, just deactivate the plugin…ĭeactivate the plugin to restore menu items. The ‘Posts’ and ‘Settings’ should now be removed from the WordPress admin menu … Menu items removed. You’ll find it among your inactive plugins, ready to activate: Activate functionality plugin. Last step: Don’t forget to activate your new functionality plugin.
Save this as remove-menu.php or whatever you want to name it. To remove only certain menu items include only those you want to hide within the function (and to remove menus for only certain users use current_user_can()).Īs we only want to remove the post and settings menu, let’s include only the code for those items … This will remove the Settings and Posts Menu items. Using the above code will remove every menu for all users. Sample Functionality plugin.Or … open a blank text file and add information about your plugin …Īdd your plugin information.Next, add your code: This will remove every menu for all users. I’ll walk you through it:įirst, start with a sample functionality plugin like the one shown below …
The best way to add this type of modification is to create a functionality plugin (a plugin created for a specific website that acts as a portable functions.php file, which carries across different themes).ĭon’t worry it’s very easy. The quick and dirty way to do this one is to add it to your theme’s functions.php file, but that’s only if you’re feeling like a lazy goose. Here’s the before and after: Before and after removing posts and settings menu. Posts … who needs it?Just for kicks, let’s remove the settings menu, too. Let’s say you want to remove the posts menu. Replace the menu slug with the name of the php script for the menu item you want to remove. Removing Items from the Admin Menu Using Code
The WordPress codex is full of fun things that you can experiment with.