Filters the default array of categories for block types.
$block_categoriesarray[]
$postWP_Post
$block_categories = apply_filters_deprecated( 'block_categories', array( $block_categories, $post ), '5.8.0', 'block_categories_all' );
| Version | Description |
|---|---|
| 5.8.0 | Use the 'block_categories_all' filter instead. |
| 5.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/block_categories