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



allowed_block_types ›

Desde5.0.0
Obsoleton/a
apply_filters( 'allowed_block_types', true, $post )
Parâmetros: (2)
  • (bool|array) $allowed_block_types Array of block type slugs, or boolean to enable/disable all.
    Required: Yes
  • (object) $post The post resource data.
    Required: Yes
Definido em:
Codex:

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





Fonte

$allowed_block_types = apply_filters( 'allowed_block_types', true, $post );