Filters the metadata provided for registering a block type.
Parameters
$metadata
array- Metadata for registering a block type.
Source
$metadata = apply_filters( 'block_type_metadata', $metadata );
Changelog
Version | Description |
---|---|
5.7.0 | Introduced. |
Filters the metadata provided for registering a block type.
$metadata
array$metadata = apply_filters( 'block_type_metadata', $metadata );
Version | Description |
---|---|
5.7.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
If you use method to add additional attributes similar to shown above from Elvis Morales, it is obligatory to set ‘default’ key, otherwise adding block attribute will fail without error message.