acf/pre_save_block хук-фильтр . ACF 5.7.14
Filteres the block attributes before saving.
Использование
add_filter( 'acf/pre_save_block', 'filter_function_name_7978' ); function filter_function_name_7978( $attrs ){ // filter... return $attrs; }
- $attrs(массив)
- The block attributes.
Список изменений
С версии 5.7.14 | Введена. |
Где вызывается хук
acf/pre_save_block
acf/pro/blocks.php 658
$attrs = apply_filters( 'acf/pre_save_block', $attrs );