WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about allowed_block_types

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/block-editor.php apply_filters_deprecated 141 /**
* Filters the allowed block types for the editor.
*
* @since 5.0.0
* @deprecated 5.8.0 Use the {@see 'allowed_block_types_all'} filter instead.
*
* @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_Post $post The post resource data.
*/

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.