wpseek.com
WordPress开发者和主题制作者的搜索引擎



allowed_block_types_all › WordPress过滤钩子

Since5.8.0
已弃用n/a
apply_filters( 'allowed_block_types_all', $allowed_block_types, $block_editor_context )
参数: (2)
  • (bool|string[]) $allowed_block_types Array of block type slugs, or boolean to enable/disable all. Default true (all registered block types supported).
    Required: Yes
  • (WP_Block_Editor_Context) $block_editor_context The current block editor context.
    Required: Yes
定义在:
文档:

Filters the allowed block types for all editor types.





源码

$allowed_block_types = apply_filters( 'allowed_block_types_all', $allowed_block_types, $block_editor_context );