nocache_headers хук-фильтрWP 2.8.0

Filters the cache-controlling HTTP headers that are used to prevent caching.

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

add_filter( 'nocache_headers', 'wp_kama_nocache_headers_filter' );

/**
 * Function for `nocache_headers` filter-hook.
 * 
 * @param array $headers Header names and field values.
 *
 * @return array
 */
function wp_kama_nocache_headers_filter( $headers ){

	// filter...
	return $headers;
}
$headers(массив)
Header names and field values.

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

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

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

wp_get_nocache_headers()
nocache_headers
wp-includes/functions.php 1512
$headers = (array) apply_filters( 'nocache_headers', $headers );

Где используется хук в WordPress

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