wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



allowed_block_types_all › Filtr WordPress Hooks

Od5.8.0
Przestarzałyn/a
apply_filters( 'allowed_block_types_all', $allowed_block_types, $block_editor_context )
Parametry: (2)
  • (bool|string[]) $allowed_block_types Array of block type slugs, or boolean to enable/disable all. Default true (all registered block types supported).
    Wymagane: Tak
  • (WP_Block_Editor_Context) $block_editor_context The current block editor context.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the allowed block types for all editor types.





Źródło

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