nocache_headers
This is a WordPress - nocache_headers hook. The plugin just uses it.
Filters the cache-controlling HTTP headers that are used to prevent caching.
Usage
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(array)
- Header names and field values.
Where the hook is called
In file: /php/wp-settings-cli.php
nocache_headers
wp-cli/php/wp-settings-cli.php 173
apply_filters( 'nocache_headers', [] );