apply_filters( 'sensei_block_type_args', $block_args, $block_name ) → {array}
Filter the args of the Sensei blocks.
In WordPress versions 5.5 and later, block type arguments can be filtered by using register_block_type_args instead. This filter exists to support earlier versions only.
Notice that for blocks being registered using the $file_or_folder
, this filter runs before the
register_block_type_from_metadata
.
Parameters:
Name | Type | Description |
---|---|---|
$block_args |
array | The block arguments as defined by register_block_type. |
$block_name |
string | Block name. |
- Since:
- 3.6.0
- Source:
- See:
-
- register_block_type
- register_block_type_from_metadata
Returns:
Block args.
- Type
- array