跳到内容

Barar Menu Visibility Rules

v1.0.0

Atik Hosen · 2026年8月1日 上架

Control WordPress menu visibility with conditional rules for roles, devices, pages, post types, scheduling, URLs, referral, geolocation, and WooCommer …

正在使用
10 以下
评分
暂无
累计下载
295
最近更新
2026年8月1日
需要 WordPress 6.0+已测试到 7.0.9PHP 7.4+

贡献者

截图

Visibility rule configuration interface in the menu editor.
Visibility rule configuration interface in the menu editor.
Barar Menu Visibility Rules

Barar Menu Visibility Rules gives you granular control over which menu items are shown to your visitors. No coding required — configure everything directly in the WordPress menu editor.

Features

  • User Status — Show items to everyone, logged-in users, or logged-out users
  • User Roles — Target specific WordPress user roles (admin, editor, subscriber, etc.)
  • Specific Pages — Show or hide items on specific pages or URLs
  • Devices — Display items based on desktop, tablet, or mobile devices
  • Page Categories — Control visibility on category archive pages
  • Post Types — Show or hide on specific post type archives and single views
  • Date & Time — Schedule menu items to appear within specific date and time ranges
  • URL Parameters — Toggle visibility based on URL query parameters (e.g., ?campaign=summer)
  • Referral URL — Show or hide items based on the HTTP Referer header
  • Country — Target visitors by country using IP geolocation
  • City — Target visitors by city using IP geolocation
  • WooCommerce Cart — Show items based on cart status (requires WooCommerce)

Combine multiple conditions using AND/OR logic for advanced targeting. Lightweight, secure, and compatible with all modern WordPress themes.

Does this work with any theme?

Yes, this plugin works with any WordPress theme that uses the standard WordPress menu system.

Does it support WooCommerce?

Yes. When WooCommerce is active, a cart status condition type becomes available.

Can I combine multiple conditions?

Yes. You can add multiple conditions per menu item and choose between AND (all conditions must match) or OR (any condition must match) logic.

Does this plugin use external services?

Country and city conditions use ip-api.com (free) to determine visitor location based on IP address. Geolocation data is cached locally for 1 hour. No personal data is stored or transmitted beyond the IP address lookup. CloudFlare users can also use CF-IPCountry header.

How does country/city detection work?

The plugin detects visitor location using their IP address, checked against CloudFlare headers (if available) or the ip-api.com geolocation service. This data is cached per IP for one hour. If geolocation is unavailable, the condition is skipped (menu item remains visible).

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums