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, $editor_name )
Parameters: (2)
  • (bool|array) $allowed_block_types Array of block type slugs, or boolean to enable/disable all.
    Required: Yes
  • (string) $editor_name The name of the editor, e.g. 'post-editor'.
    Required: Yes
Defined at:
Codex:

Filters the allowed block types for all editor types, defaulting to `true` (all registered block types supported).





Source

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