site_status_page_cache_supported_cache_headers filter-hookWP 6.1.0

Filters the list of cache headers supported by core.

Usage

add_filter( 'site_status_page_cache_supported_cache_headers', 'wp_kama_site_status_page_cache_supported_headers_filter' );

/**
 * Function for `site_status_page_cache_supported_cache_headers` filter-hook.
 * 
 * @param array $cache_headers Array of supported cache headers.
 *
 * @return array
 */
function wp_kama_site_status_page_cache_supported_headers_filter( $cache_headers ){

	// filter...
	return $cache_headers;
}
$cache_headers(array)
Array of supported cache headers.

Changelog

Since 6.1.0 Introduced.

Where the hook is called

WP_Site_Health::get_page_cache_headers()
site_status_page_cache_supported_cache_headers
wp-admin/includes/class-wp-site-health.php 3353
return apply_filters( 'site_status_page_cache_supported_cache_headers', $cache_headers );

Where the hook is used in WordPress

Usage not found.