If Menu - Visibility control for menus

if-menu · By Andrei
50k+ installs 4.1 (130) Updated 1 year ago v0.19.2 WP 6.7.8 PHP 6.0+

Impact score

Footprint Score across the two most representative contexts.

Homepage Score

Impact measured on the public homepage

···
v0.19.2 · 4 scans
Consolidated score over 90 days · 1 versions
Not enough data to publish the grade (15 scans min, currently 4).
Time
66 ms
Memory
0.0 MB
SQL
+1
Assets
1
HTTP ext.
0

Admin Score

Impact measured in the WordPress admin

···
v0.19.2 · 2 scans
Consolidated score over 90 days · 1 versions
Not enough data to publish the grade (15 scans min, currently 2).
Time
9 ms
Memory
2.0 MB
SQL
+1
Assets
0
HTTP ext.
0

About

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
    • Restrict Content Pro – Detect the users’ subscription level
  • Multiple rules – mix multiple rules for a menu item visibility
    • show if User is logged in AND Device is mobile
    • show if User is Admin AND Is front page
  • Support for adding your custom rules
Tags
hide menu roles rules visibility

Screenshots

Author-supplied previews from wordpress.org.

If Menu website demo
If Menu website demo
Enable visibility rules for Menu Items
Enable visibility rules for Menu Items
Example of visibility rules
Example of visibility rules

Per-version history

Show per-version detail (1 versions)

How the plugin evolves version by version.

Version Homepage Admin Last scan
v0.19.2 4 scans 2 scans 4 weeks ago

Scan history

Show individual scan log (6 scans)

Date Version Context Score Grade Time Memory
4 weeks ago v0.19.2 Homepage 100/100 A 0 ms 0.0 MB
1 month ago v0.19.2 Homepage 100/100 A 0 ms 0.0 MB
1 month ago v0.19.2 Admin 100/100 A 18 ms 2.0 MB
1 month ago v0.19.2 Admin 100/100 A 0 ms 2.0 MB
1 month ago v0.19.2 Homepage 91/100 A 166 ms 0.0 MB
1 month ago v0.19.2 Homepage 90/100 A 132 ms 0.0 MB