跳到内容

Visiblix Block Rules

v1.0.0

Mayur Paneliya · 2026年7月30日 上架

Show or hide any Gutenberg block based on user role, login, device, schedule, WooCommerce purchases, membership, and more.

正在使用
10 以下
评分
4.0 / 5
累计下载
315
最近更新
2026年8月16日
1 条评价需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

Dashboard overview with welcome steps and quick links
Dashboard overview with welcome steps and quick links
Settings - caching, editor indicators, and enabled condition types
Settings - caching, editor indicators, and enabled condition types
Visiblix Block Rules
Visiblix Block Rules

Visiblix Block Rules adds a Visibility Conditions panel to every Gutenberg block. Build AND/OR rules, then show or hide content automatically on the frontend – securely, without injecting tracking scripts.

Features

  • Works with any Gutenberg block
  • Login status and user roles
  • Device (desktop / tablet / mobile) and browser
  • Date and time ranges plus recurring schedules
  • Country detection via CDN headers (no remote geo API)
  • URL parameters and custom fields
  • WooCommerce purchase history
  • Membership levels (MemberPress, Restrict Content Pro, WooCommerce Memberships)
  • Allow-listed PHP callbacks for advanced logic
  • Export / import condition sets as JSON
  • REST API (viblx/v1)
  • Request-aware caching with safe fingerprints
  • Admin Dashboard, Settings, Help Center, and Developers docs
  • Fully translatable (text domain: visiblix-block-rules)

How to use

  1. Activate the plugin.
  2. Open Block Visibility in the WordPress admin menu.
  3. Edit any post or page in the block editor.
  4. Select a block and open Visibility Conditions in the sidebar.
  5. Enable conditions, choose Show or Hide, set AND/OR logic, and add rules.
  6. Update the post and preview on the frontend.

Privacy

Visiblix Block Rules does not phone home. Country rules read local CDN request headers only.

Frequently used hooks

  • viblx_register_conditions – register custom condition types
  • viblx_php_callbacks – allow-list PHP callback conditions
  • viblx_evaluation_context – extend evaluation context
  • viblx_should_render – override final visibility

See Block Visibility > Developers in wp-admin for full hook documentation with examples.

Developer notes

  • Namespace: VisiblixBlockRules\
  • Global helper: viblx()
  • REST namespace: viblx/v1
  • Conditions attribute: viblxConditions on every block

Credits

Built by Mayur Paneliya. Uses the WordPress Block API, Settings API, and REST API.

License

GPLv2 or later.

Plums

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

导航

说明

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

© 2026 Plums