WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about allowed_block_types_all

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/block-editor.php apply_filters 126 /**
* 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.
*/

Hook Parameters

Parameter Type Name Description
bool|string[] $allowed_block_types Array of block type slugs, or boolean to enable/disable all.
WP_Block_Editor_Context $block_editor_context The current block editor context.