site_status_page_cache_supported_cache_headers
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
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 );