WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Menu Item Visibility Control

Control individual menu items' visibility based on your desired condition.

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.

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()

To hide the menu item to logged in users:

! is_user_logged_in()

To show the menu item only to users with "administrator" role:

in_array('administrator', $GLOBALS['current_user']->roles)

Requires: 3.1 or higher
Compatible up to: 3.9.2
Last Updated: 2014-6-15
Downloads: 16,516

Ratings

4 stars
4.7 out of 5 stars

Support

0 of 3 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,4,4
0,1,0
50,2,1
100,1,1 100,2,2
100,3,3 100,1,1
100,2,2
100,2,2 100,1,1
100,1,1
67,3,2
50,2,1
50,2,1
100,2,2
50,2,1
67,6,4
0,1,0