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



block_categories_all › WordPress过滤钩子

Since5.8.0
已弃用n/a
apply_filters( 'block_categories_all', $block_categories, $block_editor_context )
参数: (2)
  • (array[]) $block_categories Array of categories for block types.
    Required: Yes
  • (WP_Block_Editor_Context) $block_editor_context The current block editor context.
    Required: Yes
定义在:
文档:

Filters the default array of categories for block types.





源码

$block_categories = apply_filters( 'block_categories_all', $block_categories, $block_editor_context );