site_status_available_object_cache_services
Filters the persistent object cache services available to the user.
This can be useful to hide or add services not included in the defaults.
Usage
add_filter( 'site_status_available_object_cache_services', 'wp_kama_site_status_available_object_cache_services_filter' );
/**
* Function for `site_status_available_object_cache_services` filter-hook.
*
* @param string[] $services The list of available persistent object cache services.
*
* @return string[]
*/
function wp_kama_site_status_available_object_cache_services_filter( $services ){
// filter...
return $services;
}
- $services(string[])
- The list of available persistent object cache services.
Changelog
| Since 6.1.0 | Introduced. |
Where the hook is called
site_status_available_object_cache_services
wp-admin/includes/class-wp-site-health.php 3695
return apply_filters( 'site_status_available_object_cache_services', $services );