wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



allowed_block_types_all › WordPress Filter Hooks

Seit5.8.0
Veraltetn/v
apply_filters( 'allowed_block_types_all', $allowed_block_types, $block_editor_context )
Parameter: (2)
  • (bool|string[]) $allowed_block_types Array of block type slugs, or boolean to enable/disable all. Default true (all registered block types supported).
    Erforderlich: Ja
  • (WP_Block_Editor_Context) $block_editor_context The current block editor context.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the allowed block types for all editor types.





Quellcode

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