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', 'wp_kama_acf_is_field_group_key_filter', 10, 2 );

/**
 * Function for `acf/is_field_group_key` filter-hook.
 * 
 * @param bool   $bool The result.
 * @param string $id   The identifier.
 *
 * @return bool
 */
function wp_kama_acf_is_field_group_key_filter( $bool, $id ){

	// filter...
	return $bool;
}
$bool(true|false)
The result.
$id(строка)
The identifier.

Список изменений

С версии 5.7.10 Введена.

Где вызывается хук

acf_is_field_group_key()
acf/is_field_group_key
acf/includes/acf-field-group-functions.php 188
return apply_filters( 'acf/is_field_group_key', false, $id );

Где используется хук в Advanced Custom Fields PRO

acf/includes/local-fields.php 565
add_filter( 'acf/is_field_group_key', '_acf_apply_is_local_field_group_key', 20, 2 );