register_block_type_args WordPress Filter Hook
The register_block_type_args hook allows you to modify the arguments that are used when registering a new block type. This can be useful if you need to change the default behavior of a block or add new settings.
apply_filters( 'register_block_type_args', array $args , string $block_type ) #
Filters the arguments for registering a block type.
Parameters
- $args
(array)Array of arguments for registering a block type.
- $block_type
(string)Block type name including namespace.
Source
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |