WordPress at Your Fingertips
filter is not described

block_categories_all filter-hook . WP 5.8.0

Filters the default array of categories for block types.

Usage

add_filter( 'block_categories_all', 'filter_function_name_4871', 10, 2 );
function filter_function_name_4871( $block_categories, $block_editor_context ){
	// filter...

	return $block_categories;
}
$block_categories(array[])
Array of categories for block types.
$block_editor_context(WP_Block_Editor_Context)
The current block editor context.

Changelog

Since 5.8.0 Introduced.

Where the hook is called

get_block_categories()
block_categories_all
wp-includes/block-editor.php 85
$block_categories = apply_filters( 'block_categories_all', $block_categories, $block_editor_context );

Where in WP core the hook is used WordPress

Usage not found.