On this page
apply_filters( 'block_categories_all', array[] $block_categories, WP_Block_Editor_Context $block_editor_context )
Filters the default array of categories for block types.
Parameters
$block_categoriesarray[]-
Array of categories for block types.
$block_editor_contextWP_Block_Editor_Context-
The current block editor context.
Source
File: wp-includes/block-editor.php. View all references
$block_categories = apply_filters( 'block_categories_all', $block_categories, $block_editor_context );
Related
Used By
| Used By | Description |
|---|---|
| get_block_categories() wp-includes/block-editor.php | Returns all the categories for block types that will be shown in the block editor. |
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/block_categories_all