Linux 软件免费装

Menu Item Visibility Control

开发者 shazdeh
更新时间 2021年11月3日 18:34
PHP版本: 5.4 及以上
WordPress版本: 5.8.1

标签

menu navigation filter context nav-menu navigation menu conditional tags

下载

详情介绍:

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

安装:

  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.

屏幕截图:

  • Visibility Control

更新日志:

0.5 0.4 0.3.9 0.3.8 0.3.7 0.3.6 0.3.5 0.3.4 0.3.3 0.3.2 0.3.1 0.3 0.2.1 0.2