wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



allowed_block_types_all › Hooks de Filtros WordPress

Desde5.8.0
Obsoleton/a
apply_filters( 'allowed_block_types_all', $allowed_block_types, $block_editor_context )
Parâmetros: (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
Definido em:
Codex:

Filters the allowed block types for all editor types.





Fonte

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