acf/register_block_type_args
Filters the arguments for registering a block type.
Использование
add_filter( 'acf/register_block_type_args', 'wp_kama_acf_register_block_type_args_filter' ); /** * Function for `acf/register_block_type_args` filter-hook. * * @param array $block The array of arguments for registering a block type. * * @return array */ function wp_kama_acf_register_block_type_args_filter( $block ){ // filter... return $block; }
- $block(массив)
- The array of arguments for registering a block type.
Список изменений
С версии 5.8.9 | Введена. |
Где вызывается хук
acf/register_block_type_args
acf/pro/blocks.php 166
$block = apply_filters( 'acf/register_block_type_args', $block );