Linux 软件免费装

Menu Visibility Control

开发者 davisw3
更新时间 2025年10月24日 15:55
捐献地址: 去捐款
PHP版本: 7.2 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

menu navigation roles conditional visibility

下载

1.0.2 1.0.3

详情介绍:

Menu Visibility Control is a lightweight and reliable WordPress plugin that lets you manage menu visibility based on login status or user roles — directly inside the menu editor. Choose who sees each menu item: 💡 Perfect For 🔧 Key Features 🧠 Why Use It Unlike heavier plugins, Menu Visibility Control uses core WordPress filters only — keeping your site fast, secure, and fully compatible with caching or multilingual setups.

安装:

  1. Upload the plugin folder to /wp-content/plugins/menu-visibility-control/, or install it directly from the WordPress plugin installer.
  2. Activate it through Plugins → Installed Plugins.
  3. Go to Appearance → Menus, expand a menu item, and set the Visibility dropdown to:
  4. Everyone
  5. Logged In Users
  6. Logged Out Users
  7. User Roles (then tick which roles can view it)
That’s all — no configuration required.

屏幕截图:

  • Role selection checkboxes for “User Roles.”

升级注意事项:

1.0.3 Recommended update for compatibility with WordPress 6.8 +. No breaking changes.

常见问题:

Where are the plugin settings?

There’s no separate settings page. All visibility controls appear directly in Appearance → Menus when editing menu items.

Can I hide or show items by user role?

Yes. Choose User Roles as the visibility option, then select the specific roles allowed to see that menu item.

Does it work with all themes and builders?

Yes. It works with any properly coded theme or builder that uses WordPress’ native wp_nav_menu() function, including Elementor, Divi, and Block themes.

Will it affect my site speed?

No. The plugin is extremely lightweight and only runs on menu rendering.

Can I translate the plugin?

Yes. It’s fully ready for translation using the text domain menu-visibility-control.

Is it safe for production sites?

Absolutely. It follows WordPress coding standards, uses nonces and sanitization, and stores only simple metadata in each menu item.

更新日志:

1.0.3 1.0.2 1.0.1