acf/get_cache_key хук-фильтрACF 5.7.11

Filters the cache key.

Использование

add_filter( 'acf/get_cache_key', 'wp_kama_acf_get_cache_key_filter', 10, 2 );

/**
 * Function for `acf/get_cache_key` filter-hook.
 * 
 * @param string $key          The cache key.
 * @param string $original_key The original cache key.
 *
 * @return string
 */
function wp_kama_acf_get_cache_key_filter( $key, $original_key ){

	// filter...
	return $key;
}
$key(строка)
The cache key.
$original_key(строка)
The original cache key.

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

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

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

acf_cache_key()
acf/get_cache_key
acf/includes/acf-helper-functions.php 106
return apply_filters( 'acf/get_cache_key', $key, $key );

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

acf/includes/l10n.php 149
add_filter( 'acf/get_cache_key', '_acf_apply_language_cache_key' );