WordPress at a glance
filter is not described

nocache_headers filter-hook . WP 2.8.0

Filters the cache-controlling headers.

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

add_filter( 'nocache_headers', 'filter_function_name_7817' );
function filter_function_name_7817( $headers ){
	// filter...

	return $headers;
}
$headers(array)

Header names and field values.

  • Expires(string)
    Expires header.

  • Cache-Control(string)
    Cache-Control header.

Changelog

Since 2.8.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.