site_status_page_cache_supported_cache_headers
Filter HookDescription
Filters the list of cache headers supported by core.Hook Information
File Location |
wp-admin/includes/class-wp-site-health.php
View on GitHub
|
Hook Type | Filter |
Line Number | 3353 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$cache_headers
|
Array of supported cache headers. |
Usage Examples
Basic Usage
<?php
// Hook into site_status_page_cache_supported_cache_headers
add_filter('site_status_page_cache_supported_cache_headers', 'my_custom_filter', 10, 1);
function my_custom_filter($cache_headers) {
// Your custom filtering logic here
return $cache_headers;
}
Source Code Context
wp-admin/includes/class-wp-site-health.php:3353
- How this hook is used in WordPress core
<?php
3348 *
3349 * @since 6.1.0
3350 *
3351 * @param array $cache_headers Array of supported cache headers.
3352 */
3353 return apply_filters( 'site_status_page_cache_supported_cache_headers', $cache_headers );
3354 }
3355
3356 /**
3357 * Checks if site has page cache enabled or not.
3358 *
PHP Documentation
<?php
/**
* Filters the list of cache headers supported by core.
*
* @since 6.1.0
*
* @param array $cache_headers Array of supported cache headers.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/class-wp-site-health.php
Related Hooks
Related hooks will be displayed here in future updates.