WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Nav Menu Roles

Hide custom menu items based on user roles

This plugin lets you hide custom menu items based on user roles. So if you have a link in the menu that you only want to show to logged in users, certain types of users, or even only to logged out users, this plugin is for you.

Nav Menu Roles is very flexible. In addition to standard user roles, you can customize the functionality by adding your own check boxes with custom labels using the nav_menu_roles filter and then using the nav_menu_roles_item_visibility filter to check against whatever criteria you need. You can check against any user meta values (like capabilities) and any custom attributes added by other plugins. See the FAQ.

IMPORTANT NOTE

In WordPress menu items and pages are completely separate entities. Nav Menu Roles does not restrict access to content. Nav Menu Roles is only for showing/hiding nav menu items. If you wish to restrict content then you need to also be using a membership plugin.

Usage

  1. Go to Appearance > Menus
  2. Edit the menu items accordingly. First select whether you'd like to display the item to all logged in users, all logged out users or to customize by role.
  3. If you chose customize by role, then you you can check the boxes next to the roles you'd like to restrict visibility to.
  4. If you choose 'By Role' and don't check any boxes, the item will be visible to everyone like normal.

Support

Support is handled in the WordPress forums. Please note that support is limited and does not cover any custom implementation of the plugin. Before posting, please read the FAQ. Also, please verify the problem with other plugins disabled and while using a default theme.

Please report any bugs, errors, warnings, code problems to Github

Requires: 3.8 or higher
Compatible up to: 3.9.1
Last Updated: 2014-6-27
Downloads: 58,075

Ratings

4 stars
4.9 out of 5 stars

Support

10 of 11 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

3 people say it works.
0 people say it's broken.

100,2,2 100,2,2 100,1,1
50,4,2
100,1,1 100,1,1
67,3,2 100,2,2
100,1,1 100,1,1
50,2,1
100,7,7
100,1,1
67,3,2 100,1,1 100,1,1
100,3,3 100,3,3