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|array) 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, register_block_type, get_block_templates, get_site_allowed_themes

Top Google Results

User discussions

wpseek mobile