Linux 软件免费装
Banner图

Controlled Content Block

开发者 wpblockbuddy
更新时间 2022年5月31日 21:58
PHP版本: 5.6 及以上
WordPress版本: 6.0
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

block blocks layout design

下载

0.2.0 0.1.0 0.2.1.1

详情介绍:

With the Controlled Content Block you can create a Content section where you have control over which blocks are allowed. Use this block if you have a section where you only want paragraphs. The block also features a filter to control who can change which type of blocks are available. The possible allowed core blocks are paragraphs, lists, headings, and images. If you would like to add or remove blocks from these choices there is a filter for that too. The block also features a filter to remove the meta box for selecting allowed blocks for certain users. View Information on filters and additional documentation.

安装:

  1. Upload the plugin files to the /wp-content/plugins/controlled-content directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress

屏幕截图:

  • Select allowed blocks.
  • Only allowed blocks in block editor

常见问题:

Which blocks can be allowed?

Any block installed on your site. The default list you can select from is:

  • Paragraph
  • List
  • Heading
  • Image

What Filters are available?

The block offers two filters.

  1. wpblockbuddy_controlled_content_block_choices to filter the list of blocks to choose from.
  2. wpblockbuddy_controlled_content_user_can_view to filter if the meta box for selecting allowed blocks is visible to a user.

更新日志:

0.1.0 0.2.0