Plugin info

Total downloads: 166,801
Active installs: 10,000
Total reviews: 69
Average rating: 4.5
Support threads opened: 1
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 11/3/2021 (1519 days ago)
Added to WordPress: 8/3/2011 (14 years old)
Minimum WordPress version: 5.4
Tested up to WordPress version: 5.8.6
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 1519 days ago • Support resolved 0% • 69 reviews

16/100

Is Menu Item Visibility Control abandoned?

Possibly abandoned (last update 1519 days ago).

Compatibility

Requires WordPress: 5.4
Tested up to: 5.8.6
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Widget Logic
Rating 4.4/5 (188 reviews)Active installs 100,000
Conditional Menus
Rating 4.4/5 (72 reviews)Active installs 70,000
Restrict Widgets
Rating 4.8/5 (36 reviews)Active installs 5,000
Widget Manager Light
Rating 3.8/5 (11 reviews)Active installs 700
Widget Logic Visual
Rating 2.7/5 (7 reviews)Active installs 200
If Shortcode
Rating 5.0/5 (6 reviews)Active installs 200

Description

Using this plugin you can use WordPress Conditional Tags to enable or disable menu items on the front-end. It works like ‘Widget Logic’ but for menu items.

PLEASE NOTE The conditions are PHP codes that are evaluated using PHP’s “eval” function, meaning anyone who has access to the Menu manager in WordPress can execute any code. Be mindful of who has access to the Menu manager.

Usage

You must insert conditional tags in the “Visibility” box in the menu item options form. You can use any PHP or WordPress functions to build crazy conditions and logics for menu items. For example, to hide the menu item on homepage you can set the visibility to:

! is_home()

Show the menu only to logged-in users:

is_user_logged_in()

Show the menu only to guest visitors:

! is_user_logged_in()

To show the menu item based on user capability:

current_user_can( 'manage_options' )

Installation

  1. Upload the menu-item-visibility directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Locate the ‘Menus’ item on the ‘Appearance’ menu
  4. While editing your menu item, you see another option: Visibility, input your logic and that’s it.

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

  1. Visibility Control

    Visibility Control

Changelog

0.5

  • Fix error handler in php8

0.4

  • Improve error handling

0.3.9

  • Better compatibility with outdated themes that don’t support WP 4.5

0.3.8

  • Updated to use the new API in WP 4.5

0.3.7

  • Fix JS error on Menus manager

0.3.6

  • Revamp of how fields are added to WP UI, should prevent conflict with other plugins and themes.

0.3.5

  • Possible fatal error prevention

0.3.4

  • Fix compatibility with Menu Icons plugin

0.3.3

  • Fix menu item edit screen styles

0.3.2

  • Fix Customizer wiping out the Visibility value upon save

0.3.1

  • Got rid of PHP notices in the admin area
  • Updated Walker_Nav_Menu_Edit

0.3

  • Gantry 4.0 compatibility
  • implemented singleton pattern
  • added the remove_visibility_meta function which cleans up the meta datas for deleted menu items

0.2.1

  • Fixed a minor bug where unnecessary database rows in postmeta table would be created upon save
  • fixed a bug concerning using quotes in conditions

0.2

  • Compatibility with latest WordPress release
  • Fixed a minor bug where conditions would also execute on the admin area