acf/prepare_field_group_for_import
Filters the $field_group array before being returned to the import tool.
Использование
add_filter( 'acf/prepare_field_group_for_import', 'wp_kama_acf_prepare_field_group_for_import_filter' ); /** * Function for `acf/prepare_field_group_for_import` filter-hook. * * @param array $field_group The field group array. * * @return array */ function wp_kama_acf_prepare_field_group_for_import_filter( $field_group ){ // filter... return $field_group; }
- $field_group(массив)
- The field group array.
Список изменений
С версии 5.8.8 | Введена. |
Где вызывается хук
acf/prepare_field_group_for_import
acf/includes/acf-field-group-functions.php 1044
return apply_filters( 'acf/prepare_field_group_for_import', $field_group );