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 );