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



allowed_block_types › WordPress Filter Hooks

Seit5.0.0
VeraltetUse the {@see 'allowed_block_types_all'} filter instead.
$allowed_block_types = apply_filters_deprecated( 'allowed_block_types', array( $allowed_block_types, $post ), '5.8.0', 'allowed_block_types_all' );
Parameter: (2)
  • () allowed_block_types Array of block type slugs, or boolean to enable/disable all. Default true (all registered block types supported)
    Erforderlich: Ja
  • () post The post resource data.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the allowed block types for the editor.





Quellcode

$allowed_block_types = apply_filters_deprecated( 'allowed_block_types', array( $allowed_block_types, $post ), '5.8.0', 'allowed_block_types_all' );