Warning: This hook has been deprecated. Use the ‘block_categories_all’ filter instead.
block_categories WordPress Hook
The block_categories hook is used to register custom blocks categories. This hook is used to register custom blocks categories. This can be used to group blocks together by function, or to create specialized block types.
apply_filters_deprecated( 'block_categories', array[] $block_categories , WP_Post $post ) #
Filters the default array of categories for block types.
Parameters
- $block_categories
(array[])Array of categories for block types.
- $post
(WP_Post)Post being loaded.
Source
Changelog
Version | Description |
---|---|
5.8.0 | Use the 'block_categories_all' filter instead. |
5.0.0 | Introduced. |