get_allowed_block_types
get_allowed_block_types ( $block_editor_context )
Parameters:- (WP_Block_Editor_Context) block_editor_context The current block editor context.
Returns:- (bool|string[]) Array of block type slugs, or boolean to enable/disable all.
Defined at: - Introduced in WordPress: 5.8.0
- Deprecated in WordPress: —
Description
Gets the list of allowed block types to use in the block editor.