site_status_available_object_cache_services хук-фильтрWP 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.

Использование

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.

Список изменений

С версии 6.1.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.