allowed_block_types_all
最后更新于:2021-11-25 20:07:58
apply_filters( ‘allowed_block_types_all’, bool|array $allowed_block_types, GC_Block_Editor_Context $block_editor_context )
Filters the allowed block types for all editor types.
参数
- $allowed_block_types
-
(bool|array)
Array of block type slugs, or boolean to enable/disable all. Default true (all registered block types supported). - $block_editor_context
-
(GC_Block_Editor_Context)
The current block editor context.
源文件
文件: gc-includes/block-editor.php