apply_filters( 'site_status_page_cache_supported_cache_headers', array $cache_headers )
- Since
- 6.1.0
Filters the list of cache headers supported by core.
Compatibility
- WordPress
- since 6.1.0
- 6.7.10
- 6.8.11
- 6.9.10
- 7.0.7
- 7.1.3
Present in every tracked release (6.7.10 to 7.1.3).
Parameters
$cache_headersarray- Array of supported cache headers.
Where this hook fires · 1
wp-admin/includes/class-wp-site-health.php:3424WP_Site_Health::get_page_cache_headers()
Source code
* Filters the list of cache headers supported by core. * * @since 6.1.0 * * @param array $cache_headers Array of supported cache headers. */ return apply_filters( 'site_status_page_cache_supported_cache_headers', $cache_headers ); } /** * Checks if site has page cache enabled or not. * * @since 6.1.0Changelog
Introduced in 6.1.0. 2 changes between 6.7.10 and 7.1.3.
Signature, return type and hooks compared across 5 parsed releases.
7.0.7
Parameter `` added.verified against source
7.0.7
Parameter
$cache_headers removed.verified against source6.1.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.10 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.