跳到内容

Restrict Block Content

v1.0.1

bethinkstudio · 2025年5月19日 上架

Applies Restrict Content / Restrict Content Pro level based restrictions to specific core blocks.

正在使用
10 以下
评分
暂无
累计下载
704
最近更新
2025年5月29日
需要 WordPress 6.7+已测试到 6.8.13PHP 7.4+

截图

By default, Group and Row blocks will have this additional panel, to add restrictions.
By default, Group and Row blocks will have this additional panel, to add restrictions.
When enabled, it will expose the interface to specify the access level , and whether you would like it to restrict to users at that level and above, or those that do not meet the requirement.
When enabled, it will expose the interface to specify the access level , and whether you would like it to restrict to users at that level and above, or those that do not meet the requirement.
Once you specify the level, the text will update to clarify which level it is restricting based on.
Once you specify the level, the text will update to clarify which level it is restricting based on.

This plugin will allow you, by default, to add restrictions to core/group and core/row blocks in the block and full-site editors.

Restrictions involve enabling it for that block, then setting the access level used by RC/RCP, and then determine whether the user must have at least that access level, or not have that access level in the block editor.

For details about how Access Levels work, here is a resource from the creators: https://help.solidwp.com/hc/en-us/articles/360049322274-How-do-access-levels-work

This plugin relies on either Restrict Content available on the WordPress.org Plugins Repository, or the premium version of Restrict Content Pro.

Note: If you are using Restrict Content Pro, and facing an issue where this plugin’s dependencies do not seem to be met, make sure you are using RCP ≥ 4.5.46, which supports plugin dependencies for the free version as well through the wp_plugin_dependencies_slug filter.

If you need to use this with an older version, you can apply this filter manually:

/**
 * Filter so that plugins listing the free version as a dependency would also be satisfied by the Pro version.
 *
 * @param string $slug The plugin slug being checked.
 */
add_filter( 'wp_plugin_dependencies_slug', function( $s ) {
    if ( 'restrict-content' === $s ) {
        $s = 'restrict-content-pro';
    }
    return $s;
});

Source Code

Full source code is available on Github here:

https://github.com/bethinkstudio/restrict-block-content

Plums

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

导航

说明

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

© 2026 Plums