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