Title: Hide Menu Items by Role
Author: Mahfuzur Rahman
Published: <strong>17 Marzo 2023</strong>
Last modified: 25 Ottobre 2026

---

Ricerca i plugin

![](https://ps.w.org/hide-menu-items-by-role/assets/banner-772x250.png?rev=3211202)

![](https://ps.w.org/hide-menu-items-by-role/assets/icon.svg?rev=3211182)

# Hide Menu Items by Role

 Di [Mahfuzur Rahman](https://profiles.wordpress.org/mahfuzurwp/)

[Scarica](https://downloads.wordpress.org/plugin/hide-menu-items-by-role.2.1.0.zip)

 * [Dettagli](https://it.wordpress.org/plugins/hide-menu-items-by-role/#description)
 * [Recensioni](https://it.wordpress.org/plugins/hide-menu-items-by-role/#reviews)
 *  [Installazione](https://it.wordpress.org/plugins/hide-menu-items-by-role/#installation)
 * [Sviluppo](https://it.wordpress.org/plugins/hide-menu-items-by-role/#developers)

 [Supporto](https://wordpress.org/support/plugin/hide-menu-items-by-role/)

## Descrizione

Hide Menu Items by Role lets you decide who sees each link in your WordPress navigation,
item by item, without building a separate menu for every audience. Open Appearance
> Menus, edit a menu item, and choose which user roles should see it and whether
it belongs to logged-in users, logged-out visitors, or everyone.

It is a small, focused tool for client sites, membership and community sites, WooCommerce
stores, and any site where guests and registered users need different navigation.

#### What you can do

 * Show a menu item to everyone, ignoring role rules (“Show to all roles”, the default)
 * Hide a menu item from the user roles you select
 * Show a menu item only to the user roles you select
 * Restrict items by user status: everyone, logged-in users only, or logged-out 
   visitors only
 * Combine role and user-status rules on the same item
 * Tick as many roles as you need, including custom roles registered by other plugins

#### Why it stays out of the way

 * No settings page to learn, because the options live in the menu item editor right
   where you need them
 * No extra database tables, as every setting is stored as standard menu item meta
 * Filtering runs through WordPress core menu filters, so no frontend JavaScript
   or CSS is added to your site
 * Role checkboxes are disabled whenever a rule does not apply, which makes the 
   panel hard to misconfigure by accident

## Screenshot

[⌊Plugin shown in plugins page.⌉⌊Plugin shown in plugins page.⌉[

Plugin shown in plugins page.

[⌊Adding user roles and visibility settings in menus page.⌉⌊Adding user roles and
visibility settings in menus page.⌉[

Adding user roles and visibility settings in menus page.

## Installazione

 1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin
    through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Create or edit a menu item, and configure the settings in the Audience panel:
 4.  * Set the user status (Everyone, Logged-in only, Logged-out only)
     * Choose a role visibility mode: “Show to all roles” (default), “Hide for selected
       roles”, or “Show only to selected roles”
     * Tick the user roles the rule should apply to
 5. Save your menu.

## FAQ

### How do I control who can see a menu item?

Open Appearance > Menus and expand the menu item you want to edit. The Audience 
panel sits at the bottom of the item, where you can:

 1. Choose a user status: Everyone, Logged-out users only, or Logged-in users only
 2. Choose a role visibility mode: “Show to all roles” (default), “Hide for selected
    roles”, or “Show only to selected roles”
 3. Tick the user roles the rule should apply to

Save the menu when you are done.

### What do the role visibility modes do?

 * “Show to all roles” (default): the item is visible to everyone. Role rules are
   ignored and the role checkboxes are disabled.
 * “Hide for selected roles”: the item is visible to everyone except the roles you
   tick.
 * “Show only to selected roles”: the item is visible only to the roles you tick.

### What happens if I don’t select any user roles?

The item stays visible to everyone. A role rule only takes effect once at least 
one role is ticked, which keeps menu items from disappearing while you are still
setting them up. The Audience panel shows a short hint reminding you of this until
you tick a role.

### Can I apply a rule to more than one user role?

Yes. Tick as many roles as you need on the same menu item. “Hide for selected roles”
hides the item from all of them, and “Show only to selected roles” allows all of
them.

### Do custom roles from other plugins show up?

Yes. The role list is built from every role registered on the site, so roles added
by membership, e-commerce, or other plugins appear alongside the WordPress defaults.

### How does the user status visibility work?

The user status setting works independently of role-based rules:

 * Everyone: no restriction based on login status
 * Logged-out users only: the item is only visible to visitors who are not logged
   in
 * Logged-in users only: the item is only visible to users who are logged in

With “Logged-out users only”, the item is hidden from anyone who is logged in and
shown to every visitor without an account. Role rules are skipped for those visitors,
which is why the role fields are disabled in the editor.

## Recensioni

![](https://secure.gravatar.com/avatar/dd4100b92edb3c216e1220c722b2d65d59213e2d0b4c826fe02c6d54480b1350?
s=60&d=retro&r=g)

### 󠀁[Clean & Effective Role-Based Menu Control](https://wordpress.org/support/topic/clean-effective-role-based-menu-control/)󠁿

 [Developerlook](https://profiles.wordpress.org/developerlook/) 30 Maggio 2026

Exactly what I needed! This plugin makes it incredibly easy to show or hide menu
items based on user roles, no coding required. The setup is straightforward, and
it works flawlessly right out of the box. Perfect for managing different access 
levels in membership sites or multi-role dashboards. Highly recommend it to anyone
who needs clean, granular control over their navigation menu without bloating their
site with unnecessary custom code.

 [ Leggi la recensione di 1 ](https://wordpress.org/support/plugin/hide-menu-items-by-role/reviews/)

## Contributi e sviluppo

“Hide Menu Items by Role” è un software open source. Le persone che hanno contribuito
allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

 *   [ Mahfuzur Rahman ](https://profiles.wordpress.org/mahfuzurwp/)

[Traduci “Hide Menu Items by Role” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/hide-menu-items-by-role)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/hide-menu-items-by-role/)
segui il [repository SVN](https://plugins.svn.wordpress.org/hide-menu-items-by-role/),
segui il [log delle modifiche](https://plugins.trac.wordpress.org/log/hide-menu-items-by-role/)
tramite [RSS](https://plugins.trac.wordpress.org/log/hide-menu-items-by-role/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.1.0

 * Added a “Show to all roles” mode, now the default for new menu items; role checkboxes
   are disabled while it is selected
 * Rebuilt the menu item visibility settings as a collapsible Audience panel
 * Renamed the settings to User Status, Role Visibility, “Hide for selected roles”,
   and “Show only to selected roles”
 * Added a hint when a role rule is active but no roles are selected
 * Fixed items set to “Logged-out users only” disappearing when combined with “Show
   only to selected roles”
 * Widened the menu item settings panel so the longer field values fit

#### 2.0.0

 * Added login state visibility control (Everyone/Logged-out only/Logged-in only)
 * Added show/hide mode toggle (Hide for selected roles / Show only to selected 
   roles)
 * Added UI enhancements: when login state is ‘Logged-out users only’, other fields
   are visually disabled
 * Major feature update with enhanced visibility controls

#### 1.0.1

 * Updated for compatibility with WordPress 6.7.1

#### 1.0.0

 * Initial release with basic role-based hiding functionality.

## Meta

 *  Versione **2.1.0**
 *  Ultimo aggiornamento **2 settimane fa**
 *  Installazioni attive **100+**
 *  Versione WordPress ** 5.0 o superiore **
 *  Testato fino alla versione **7.1.4**
 *  Versione PHP ** 7.0 o superiore **
 *  Lingua
 * [English (US)](https://wordpress.org/plugins/hide-menu-items-by-role/)
 * Tag
 * [hide menu items](https://it.wordpress.org/plugins/tags/hide-menu-items/)[menu](https://it.wordpress.org/plugins/tags/menu/)
   [menu visibility](https://it.wordpress.org/plugins/tags/menu-visibility/)[navigation](https://it.wordpress.org/plugins/tags/navigation/)
   [user roles](https://it.wordpress.org/plugins/tags/user-roles/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/hide-menu-items-by-role/advanced/)

## Valutazioni

 5 su 5 stelle.

 *  [  1 5- recensioni a stelle     ](https://wordpress.org/support/plugin/hide-menu-items-by-role/reviews/?filter=5)
 *  [  0 recensioni a 4-stelle     ](https://wordpress.org/support/plugin/hide-menu-items-by-role/reviews/?filter=4)
 *  [  0 recensioni a 3-stelle     ](https://wordpress.org/support/plugin/hide-menu-items-by-role/reviews/?filter=3)
 *  [  0 recensioni a 2-stelle     ](https://wordpress.org/support/plugin/hide-menu-items-by-role/reviews/?filter=2)
 *  [  0 recensioni a 1-stelle     ](https://wordpress.org/support/plugin/hide-menu-items-by-role/reviews/?filter=1)

[La tua recensione](https://wordpress.org/support/plugin/hide-menu-items-by-role/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/hide-menu-items-by-role/reviews/)

## Collaboratori

 *   [ Mahfuzur Rahman ](https://profiles.wordpress.org/mahfuzurwp/)

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/hide-menu-items-by-role/)