allowed_block_types_all

过滤钩子


apply_filters( 'allowed_block_types_all', $allowed_block_types, $block_editor_context )
参数
  • (bool|string[])
    $allowed_block_types
    Array of block type slugs, or boolean to enable/disable all.
    Default true (all registered block types supported).
    Required:
  • (WP_Block_Editor_Context)
    $block_editor_context
    The current block editor context.
    Required:
定义位置
  • wp-includes/block-editor.php
    , line 126
引入
5.8.0
弃用

Filters the allowed block types for all editor types.

$allowed_block_types = apply_filters( 'allowed_block_types_all', $allowed_block_types, $block_editor_context );
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。