wpseek.com
A WordPress-centric search engine for devs and theme authors



allowed_block_types_all › WordPress Filter Hooks

Since5.8.0
Deprecatedn/a
apply_filters( 'allowed_block_types_all', $allowed_block_types, $block_editor_context )
Parameters: (2)
  • (bool|string[]) $allowed_block_types Array of block type slugs, or boolean to enable/disable all. Default true (all registered block types supported).
    Required: Yes
  • (WP_Block_Editor_Context) $block_editor_context The current block editor context.
    Required: Yes
Defined at:
Codex:

Filters the allowed block types for all editor types.





Source

$allowed_block_types = apply_filters( 'allowed_block_types_all', $allowed_block_types, $block_editor_context );