WordPress at Your Fingertips
filter is not described

allowed_block_types_all filter-hook . WP 5.8.0

Filters the allowed block types for all editor types.

Usage

add_filter( 'allowed_block_types_all', 'filter_function_name_1617', 10, 2 );
function filter_function_name_1617( $allowed_block_types, $block_editor_context ){
	// filter...

	return $allowed_block_types;
}
$allowed_block_types(true|false|array)
Array of block type slugs, or boolean to enable/disable all.
Default: true (all registered block types supported)
$block_editor_context(WP_Block_Editor_Context)
The current block editor context.

Changelog

Since 5.8.0 Introduced.

Where the hook is called

get_allowed_block_types()
allowed_block_types_all
wp-includes/block-editor.php 125
$allowed_block_types = apply_filters( 'allowed_block_types_all', $allowed_block_types, $block_editor_context );

Where in WP core the hook is used WordPress

Usage not found.