Filter hook 'allowed_block_types_all'

in WP Core File wp-includes/block-editor.php at line 127

Description

Filters the allowed block types for all editor types.

Occurrences

Filename Line Number
wp-includes/block-editor.php 127

Parameters

Type Name Description
bool|string[] $allowed_block_types Array of block type slugs, or boolean to enable/disable all. Default true (all registered block types supported).
WP_Block_Editor_Context $block_editor_context The current block editor context.

PHP Doc

/**
	 * Filters the allowed block types for all editor types.
	 *
	 * @since 5.8.0
	 *
	 * @param bool|string[]           $allowed_block_types  Array of block type slugs, or boolean to enable/disable all.
	 *                                                      Default true (all registered block types supported).
	 * @param WP_Block_Editor_Context $block_editor_context The current block editor context.
	 */