site_status_available_object_cache_services filter-hookWP 6.1.0

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

WP_Site_Health::available_object_cache_services()
site_status_available_object_cache_services
wp-admin/includes/class-wp-site-health.php 3629
return apply_filters( 'site_status_available_object_cache_services', $services );

Where the hook is used in WordPress

Usage not found.