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:

Description

Gets the list of allowed block types to use in the block editor.

Related Functions

get_allowed_mime_types, get_allowed_themes, get_allowed_block_template_part_areas, get_hooked_blocks, get_block_templates

Top Google Results

User discussions

wpseek mobile