acf/validate_field_group
Filters the $field_group array to validate settings.
Использование
add_filter( 'acf/validate_field_group', 'wp_kama_acf_validate_field_group_filter' ); /** * Function for `acf/validate_field_group` filter-hook. * * @param array $field_group The field group array. * * @return array */ function wp_kama_acf_validate_field_group_filter( $field_group ){ // filter... return $field_group; }
- $field_group(массив)
- The field group array.
Список изменений
С версии 5.0.0 | Введена. |
Где вызывается хук
acf/validate_field_group
acf/includes/acf-field-group-functions.php 246
$field_group = apply_filters( 'acf/validate_field_group', $field_group );
Где используется хук в Advanced Custom Fields PRO
acf/includes/acf-field-group-functions.php 305
add_action( 'acf/validate_field_group', 'acf_translate_field_group' );
acf/includes/compatibility.php 37
add_filter( 'acf/validate_field_group', array( $this, 'validate_field_group' ), 20, 1 );