Type to search.

#751 by installs

If Menu – Visibility control for Menus

by AndreiVersion 0.19.2

Display tailored menu items to each visitor with visibility rules

Active installs
50,000+
#751 of 1,000
Downloads, all time
1.1M
1,107,104
Downloads, 30 days
2.8K
711 in the last 7
Rating
4.1 / 5
130 reviews
Last updated
23 months ago
Dec 5, 2024
Version
0.19.2
11 releases

Upkeep and compatibility

Last updatedDecember 5, 2024Not updated for over a year
Tested up toWordPress 6.7.11Older than WordPress 7.1.4, the current release
Needs WordPressNot stated
Needs PHP6.0 or newer
First publishedOctober 10, 2012
Support, last two monthsNo threads opened

Reviews

4.1 / 5 from 130 reviews

Reviews by star rating
5 stars91
4 stars8
3 stars7
2 stars3
1 star21

Downloads, last 30 days

Low 59 a dayHigh 150 a day

What the author says it does

Control what menu items your site’s visitors see, with visibility rules. Here are a few examples:

  • Display a menu item only if User is logged in
  • Hide menus if Device is mobile
  • Display menus only for Admins and Editors
  • Hide Login or Register links for Logged in Users
  • Display menus for Users from US or UK
  • Display menus only for Customers with active membership
  • Display menus for visitors browsing with Language English or Spanish

After the plugin is enabled, each menu item will have a new option “Change menu item visibility” which will enable the selection of visibility rules.

Check the examples in screenshots or try it here → demos.layered.store

Features

  • Basic set of visibility rules
  • User state User is logged in
  • User roles Admin Editor Author etc
  • Page type Front page Single page Single post
  • Is Archive page (year, category, search results, etc)
  • Visitor device Is Mobile
  • Advanced visibility rules – requires More Visibility Rules Add-on
  • Visitor location – detect visitor’s Country
  • Visitor language – detect visitor’s selected Language
  • WooCommerce Subscriptions – Display menus for users with active subscription
  • WooCommerce Memberships – Display menus for customers with active membership plans
  • Groups – Detect if users are in specific groups
  • WishList Member – Detect the users’ membership level

The opening of the plugin's own description. The full text, installation notes and changelog are on its WordPress.org page.

Questions the author answers

Show or hide menus if user is logged in

One of the most popular uses of the plugin is to show the “Register/Login” menu for non-logged-in users, and “Your account” for logged-in users.

To enable this for “Register/Login” menu, follow these steps:

1. Go to WordPress Admin on your website -> Appearance -> Menus

2. Expand the menu item for “Register” or “Login” page

3. Enable the option “Enable visibility rules”

Mix multiple visibility rules

Multiple visibility rules can be used at once, like so:

For showing a menu item only for admins on desktop:

1. Go to WordPress Admin on your website -> Appearance -> Menus

2. Expand the menu item you want

3. Enable the option “Enable visibility rules”

4. Choose the rule “Show if user is Administrator”

5. Click the “+” button at the end of the visibility rule, and change to “AND”

If Menu is broken, no visibility rules are available

There’s a known limitation with adding functionality for menu items in WordPress, and conflicts may happen between some plugins and themes.

If there are multiple plugins that extend Menu Items, for example If Menu and a plugin for Menu Icons, only one of them can add the needed functionality and the other one won’t work as expected.

Changes to menus are not saved

This problem may happen on sites with a large number of menu items.

In most cases, this is not a limitation or problem caused by plugins or WordPress, but by the hosting server.

Your hosting provider or server limits the amount of data that can be sent to WordPress for saving in database.

How can I add a custom visibility rule for menu items?

New rules can be added by any other plugin or theme.

Example of adding a new custom rule for displaying/hiding a menu item when current page is a custom-post-type.

// theme's functions.php or plugin file add_filter('if_menu_conditions', 'my_new_menu_conditions');

Where can I find conditional functions?

WordPress provides a lot of functions which can be used to create custom rules for almost any combination that a theme/plugin developer can think of.

Latest changelog entry

0.19.2 – 5 Dec 2024

  • Updated – Improved WordPress v6.7 compatibility

Screenshots

From WordPress.org.

Tagged

Plugins that share its tags

#157 by installs

Admin Menu Editor

by Janis Elsts

Lets you edit the WordPress admin menu. You can re-order, hide or rename menus, add custom menus and more.

Installs
300,000+
Rating
4.6 (312)
Updated
2 months ago

#166 by installs

Max Mega Menu

by megamenu

An easy to use mega menu plugin. Written the WordPress way.

Installs
300,000+
Rating
4.8 (882)
Updated
47 days ago

#186 by installs

Members – Membership & User Role Editor Plugin

by Blair Williams

The best WordPress membership and user role editor plugin. Edit roles, restrict content, and now manage it all with an AI assistant.

Installs
300,000+
Rating
4.9 (1.3K)
Updated
1 day ago

#407 by installs

Menu Image, Icons made easy

by Rui Guerreiro

Adds an image or icon in the menu items. You can choose the position of the image (after, before, above, below) or even hide the menu item title.

Installs
100,000+
Rating
4.5 (123)
Updated
15 months ago

#451 by installs

Duplicate Menu

by Jon Christopher

Easily duplicate your WordPress menus with one click.

Installs
100,000+
Rating
4.6 (104)
Updated
10 months ago

Where this page's numbers come from

Read from the WordPress.org plugin API on , when WordPress 7.1.4 was the current release. WordPress.org rounds active installs into buckets. These are the directory's figures, not my verdict, and I haven't tested this plugin.