register_block_type_args filter-hook . WP 5.5.0
Filters the arguments for registering a block type.
Usage
add_filter( 'register_block_type_args', 'filter_function_name_2767', 10, 2 ); function filter_function_name_2767( $args, $block_type ){ // filter... return $args; }
- $args(array)
- Array of arguments for registering a block type.
- $block_type(string)
- Block type name including namespace.
Changelog
Since 5.5.0 | Introduced. |
Where the hook is called
register_block_type_args
wp-includes/class-wp-block-type.php 281
$args = apply_filters( 'register_block_type_args', $args, $this->name );