跳到内容

Conditional Block Visibility

v1.0.3

Sanad Qazi · 2025年2月16日 上架

Manage block visibility based on user roles, login status, or device type.

正在使用
10 以下
评分
暂无
累计下载
808
最近更新
2025年3月1日
需要 WordPress 5.8+已测试到 6.7.12PHP 7.4+

贡献者

截图

Visibility Settings in the Editor The plugin adds a "Visibility Settings" panel in the block settings sidebar for easy configuration.
Visibility Settings in the Editor The plugin adds a "Visibility Settings" panel in the block settings sidebar for easy configuration.
Dynamic User Roles Select from all available roles, including custom roles.
Dynamic User Roles Select from all available roles, including custom roles.
Device-Specific Controls Optimize visibility for desktop, tablet, and mobile devices.
Device-Specific Controls Optimize visibility for desktop, tablet, and mobile devices.
Set Visibility Based on Login Status Show or hide blocks depending on whether the user is logged in or logged out.
Set Visibility Based on Login Status Show or hide blocks depending on whether the user is logged in or logged out.

Conditional Block Visibility allows you to manage the visibility of blocks based on:
– User Roles: Show or hide blocks for specific roles like Administrator, Editor, Subscriber, etc.
– Login Status: Display blocks only for logged-in or logged-out users.
– Device Type: Control visibility for desktop, tablet, and mobile devices.

This plugin provides an easy-to-use interface in the block editor for adding visibility conditions to blocks, without requiring custom code.

Features

  • Dynamic User Roles: Automatically adapts to any custom roles added by other plugins.
  • Flexible Conditions: Combine multiple conditions for precise control.
  • Device-Based Control: Ensure content visibility is optimized for different screen sizes.
  • Visibility Based on Login Status: Set different content visibility for logged-in or logged-out users.
  • Lightweight and easy to use.

License

This plugin is licensed under the GPLv2 or later. See the GPLv2 license for details.

Plums

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

导航

说明

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

© 2026 Plums