Un motore di ricerca WordPress per sviluppatori e autori di temi



allowed_block_types ›

Da5.0.0
Deprecaton/a
apply_filters( 'allowed_block_types', true, $post )
Parametri: (2)
  • (bool|array) $allowed_block_types Array of block type slugs, or boolean to enable/disable all.
    Richiesto:
  • (object) $post The post resource data.
    Richiesto:
Definito a:
Codex:

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





Sorgenti

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