get_allowed_block_types


get_allowed_block_types ( $editor_name )

Parameters:
  • (string) editor_name The name of the editor (e.g. 'post-editor').
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_site_allowed_themes, unregister_block_type

Top Google Results

User discussions

wpseek mobile