acf/is_field_group_key хук-фильтр . ACF 5.7.10
Filters whether the $id is a field group key.
Использование
add_filter( 'acf/is_field_group_key', 'filter_function_name_4308', 10, 2 ); function filter_function_name_4308( $bool, $id ){ // filter... return $bool; }
- $bool(true/false)
- The result.
- $id(строка)
- The identifier.
Список изменений
С версии 5.7.10 | Введена. |
Где вызывается хук
acf/is_field_group_key
acf/includes/acf-field-group-functions.php 186
return apply_filters( 'acf/is_field_group_key', false, $id );
Где используется хук в ядре Advanced Custom Fields
acf/includes/acf-field-group-functions.php 551
add_filter( 'acf/is_field_group_key', '_acf_apply_is_local_field_group_key', 20, 2 );