Title: Block Permissions
Author: meceware
Published: <strong>2019 年 4 月 9 日</strong>
Last modified: 2021 年 10 月 25 日

---

搜索插件

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

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# Block Permissions

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

[下载](https://downloads.wordpress.org/plugin/block-permissions.1.0.8.zip)

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

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

## 描述

[Full Documentation](https://www.meceware.com/docs/block-permissions-for-gutenberg/)

### How To Use

 * Activate ‘Block Permissions’ plugin.
 * Edit any page with Gutenberg editor.
 * If Block Permission is chosen for ‘Show’, the block content will be shown if 
   the settings are validated. Otherwise block content will be hidden.

#### Show

 * If ‘Everyone’ is selected as the permission, the block content will be shown 
   for everyone.
 * If ‘Members’ is selected as the permission, the block content will be shown for
   the logged in users.
 * If ‘Members with Selected User Roles’ is selected as the permission, the block
   content will be shown only for the members with specified user roles.
 * If ‘Selected Users’ is selected as the permission, the block content will be 
   shown only to the specified users.
 * If ‘Selected Devices’ is selected as the permission, the block content will be
   shown for the specified devices, such as Desktops, Phones and/or Tablets.
 * If ‘Date Range’ is selected as the permission, the block content will be shown
   between the specified dates.
 * If ‘Time Range’ is selected as the permission, the block content will be shown
   between the specified times.
 * If ‘Day Of Week’ is selected as the permission, the block content will be shown
   on the specified days.
 * If ‘PHP Function’ is selected as the permission, the block content will be shown
   according to the return value of the specified PHP function.

#### Hide

 * If ‘Everyone’ is selected as the permission, the block content will be hidden
   from everyone.
 * If ‘Members’ is selected as the permission, the block content will be hidden 
   from the logged in users.
 * If ‘Members with Selected User Roles’ is selected as the permission, the block
   content will be hidden from the members with specified user roles.
 * If ‘Selected Users’ is selected as the permission, the block content will be 
   hidden from the specified users.
 * If ‘Selected Devices’ is selected as the permission, the block content will be
   hidden from the specified devices, such as Desktops, Phones and/or Tablets.
 * If ‘Date Range’ is selected as the permission, the block content will be hidden
   between the specified dates.
 * If ‘Time Range’ is selected as the permission, the block content will be hidden
   between the specified times.
 * If ‘Day Of Week’ is selected as the permission, the block content will be hidden
   on the specified days.
 * If ‘PHP Function’ is selected as the permission, the block content will be hidden
   according to the return value of the specified PHP function.

## 常见问题

No FAQ yet.

## 评价

![](https://secure.gravatar.com/avatar/ed52bbd3a41c6acde5e40a68bc7057b4d62caab11f037557555f6c4d2297c6da?
s=60&d=retro&r=g)

### 󠀁[Just what I needed to group blocks within a permission block](https://wordpress.org/support/topic/just-what-i-needed-to-group-blocks-within-a-permission-block/)󠁿

 [Larry Daniele](https://profiles.wordpress.org/larrydaniele/) 2019 年 11 月 21 
日

The Block Permissions block was just what I was looking for to restrict the visibility
of a block to certain roles. Easy to use and works well (esp. since you can nest
arbitrary blocks inside of a Block Permissions block). Thanks, Mehmet for a well-
crafted plugin.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/block-permissions/reviews/)

## 贡献者及开发者

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

贡献者

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

「Block Permissions」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/block-permissions/contributors)
为本插件所做的贡献。

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.8

 * Bug fix wrt date range selection. (thanks to urlund (@codework))

#### 1.0.7

 * Package update and minor improvements.

#### 1.0.6

 * Package update and minor improvements.

#### 1.0.5

 * Package update and minor improvements.

#### 1.0.4

 * Package update and minor improvements.

#### 1.0.3

 * License change and other improvements.

#### 1.0.2

 * Libraries updated.
 * Code improvements.

#### 1.0.1

 * Libraries updated.

#### 1.0.0

 * Initial Release.

## 额外信息

 *  版本 **1.0.8**
 *  最后更新：**5 年前**
 *  活跃安装数量 **400+**
 *  WordPress 版本 ** 5.6.0 或更高版本 **
 *  已测试的最高版本为 **5.8.13**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/block-permissions/) 和 [English (US)](https://wordpress.org/plugins/block-permissions/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/block-permissions)
 * 标签
 * [addon](https://cn.wordpress.org/plugins/tags/addon/)[blocks](https://cn.wordpress.org/plugins/tags/blocks/)
   [content restriction](https://cn.wordpress.org/plugins/tags/content-restriction/)
   [date](https://cn.wordpress.org/plugins/tags/date/)[gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)
 *  [高级视图](https://cn.wordpress.org/plugins/block-permissions/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/block-permissions/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/block-permissions/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/block-permissions/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/block-permissions/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/block-permissions/reviews/?filter=1)

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

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

## 贡献者

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

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.meceware.com/)