WordPress at a glance
filter is not described

block_categories filter-hook . WP 5.0.0

Filter the default array of block categories.


add_filter( 'block_categories', 'filter_function_name_8491', 10, 2 );
function filter_function_name_8491( $default_categories, $post ){
	// filter...

	return $default_categories;
Array of block categories.
Post being loaded.

Where the hook is called

wp-admin/includes/post.php 2025
return apply_filters( 'block_categories', $default_categories, $post );

Where the hook is used (in WP core)

Does not used.