Title: Block Visibility Manager
Author: robertoiacono
Published: <strong>2025 年 7 月 14 日</strong>
Last modified: 2025 年 7 月 14 日

---

搜索插件

![](https://ps.w.org/block-visibility-manager/assets/banner-772x250.png?rev=3327339)

![](https://ps.w.org/block-visibility-manager/assets/icon-256x256.png?rev=3327339)

# Block Visibility Manager

 作者：[robertoiacono](https://profiles.wordpress.org/prototipo88/)

[下载](https://downloads.wordpress.org/plugin/block-visibility-manager.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/block-visibility-manager/#description)
 * [评价](https://cn.wordpress.org/plugins/block-visibility-manager/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/block-visibility-manager/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/block-visibility-manager/#developers)

 [支持](https://wordpress.org/support/plugin/block-visibility-manager/)

## 描述

**Block Visibility Manager** gives you fine-grained control over which blocks support
visibility rules in the block editor.

You can conditionally show or hide individual block based on:

 * Time
 * Date and time
 * User roles (including guests)
 * Device type (mobile, tablet, desktop)

### Benefits

 * Show a block only during a limited time (e.g. event banners)
 * Hide a block for guests
 * Improve content relevance and scheduling without complex tools.
 * Keep the editor clean by enabling visibility only where needed.
 * No performance overhead or custom block lock-in.
 * 100% native: works seamlessly with WordPress Core and Gutenberg.

### Features

 * **Time Scheduling** – Show or hide blocks between specific times, everyday (based
   on server time).
 * **Date & Time Scheduling** – Show or hide blocks between specific dates with 
   time for granular control, based on UTC+0 timezone. For example you can display
   a block only on Amazon Prime Days, from 00:00 of the first day to 23:59 of the
   last day.
 * **User Role Targeting** – Restrict visibility based on WP user roles, such as
   Administrator, Editor, Subscriber, and others — or hide/show blocks specifically
   for guests (non-logged-in users).
 * **Device-Based Display** – Conditionally hide blocks on mobile, tablet, or desktop.
   his is achieved using fixed CSS media queries, ensuring consistent behavior across
   themes without relying on JavaScript.
 * **Selective Block Control** – Choose which blocks support visibility settings.
 * **Fully Native** – Built using core WordPress components and filters only.

### Who Is It For?

 * **Content creators** who want to show time-sensitive content.
 * **Developers and site builders** who prefer native, non-bloated solutions.
 * **Agencies** looking to offer clients role-based or scheduled content blocks.
 * **Marketers** who need to hide/show promotions or messages dynamically.

### Why Use This Plugin?

Need to:

 * Show a block only during a limited time (e.g. event banners)?
 * Hide a message from logged-out users?
 * Disable visibility options on blocks that don’t need them.
 * Avoid third-party plugins that add extra blocks or scripts?

**Block Visibility Manager solves these problems cleanly and natively.**

### Technical Notes

**No Blocks Added**
 This plugin does not add any new blocks. Instead, it **extends
existing core WordPress blocks** using official filters and native UI components,
keeping your site fast, lean, and fully compatible with WordPress standards.

**Device-Based Visibility**
 The hiding functionality for mobile, tablet, or desktop
relies purely on CSS using `display: none;`. No JavaScript is involved. This ensures
lightweight and consistent behavior across different themes.

**Server-Side Visibility Filtering**
 Other visibility conditions (such as time 
range, date range, or user roles) are enforced server-side. If a block does not 
meet the defined conditions, it is entirely removed from the rendered HTML output.

**Editor Behavior**
 Visibility settings currently apply only on the frontend. Blocks
remain fully visible in the editor to avoid confusion during content creation. Visibility
conditions are not previewed in the block editor at this time.

**Block Visibility for WordPress Block Editor**
 This plugin is designed exclusively
for the WordPress Block Editor (Gutenberg). It does not support other page builders
such as Elementor, Beaver Builder, WPBakery, or others.

If you are using a block-based theme or editing content with the native WordPress
block editor, this plugin will seamlessly integrate. For other builders, visibility
settings will have no effect.

## 屏幕截图

 * [[
 * Block Visibility Manager in action.
 * [[
 * Visibility options available inside block settings.
 * [[
 * Admin panel to enable or disable visibility support per block.
 * [[
 * Enable Visibility Manager for the block.
 * [[
 * Example: Set a block to show only during a specific date/time range.
 * [[
 * Roles options.
 * [[
 * Example: hide block on mobile.
 * [[
 * Example: Hide banner on mobile.

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/block-visibility-manager` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Go to **Settings > Block Visibility** to choose which blocks should support visibility
    options.

## 常见问题

### Does this plugin add new blocks?

No, it extends **existing WordPress core blocks** via filters.

### Will it work with custom blocks?

Only core blocks are supported by default. Third-party blocks may work if registered
using `block.json`.

### Can I remove the plugin without affecting saved content?

Yes. Visibility settings are saved in block attributes and will not break your layout.

### Does it load custom scripts?

No. It uses **WordPress core components** and no custom frontend JavaScript.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Block Visibility Manager」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ robertoiacono ](https://profiles.wordpress.org/prototipo88/)

[帮助将「Block Visibility Manager」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/block-visibility-manager)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/block-visibility-manager/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/block-visibility-manager/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/block-visibility-manager/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/block-visibility-manager/)。

## 更新日志

#### 1.0.0

 * Release

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**11 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/block-visibility-manager/)
 * 标签
 * [block](https://cn.wordpress.org/plugins/tags/block/)[block visibility](https://cn.wordpress.org/plugins/tags/block-visibility/)
   [block-editor](https://cn.wordpress.org/plugins/tags/block-editor/)[gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)
   [visibility](https://cn.wordpress.org/plugins/tags/visibility/)
 *  [高级视图](https://cn.wordpress.org/plugins/block-visibility-manager/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/block-visibility-manager/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/block-visibility-manager/reviews/)

## 贡献者

 *   [ robertoiacono ](https://profiles.wordpress.org/prototipo88/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/block-visibility-manager/)