>
Download This Plugin | |
Download Elegant Themes | |
Name | Menu Item Visibility Control |
Version | 0.3.1 |
Author | Hassan Derakhshandeh |
Rating | 86 |
Last updated | 2014-06-15 12:23:00 |
Downloads |
22964
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Menu Item Visibility Control plugin added 4 bytes of resources to the Home page and 17 bytes of resources to the sample Post page.
Menu Item Visibility Control plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Menu Item Visibility Control plugin ads no tables to your Wordpress blog database.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.
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)