Filter hook 'site_status_available_object_cache_services'

in WP Core File wp-admin/includes/class-wp-site-health.php at line 3624

View Source

site_status_available_object_cache_services

Filter Hook
Description
Filters the persistent object cache services available to the user. This can be useful to hide or add services not included in the defaults.

Hook Information

File Location wp-admin/includes/class-wp-site-health.php View on GitHub
Hook Type Filter
Line Number 3624

Hook Parameters

Type Name Description
string[] $services The list of available persistent object cache services.

Usage Examples

Basic Usage
<?php
// Hook into site_status_available_object_cache_services
add_filter('site_status_available_object_cache_services', 'my_custom_filter', 10, 1);

function my_custom_filter($services) {
    // Your custom filtering logic here
    return $services;
}

Source Code Context

wp-admin/includes/class-wp-site-health.php:3624 - How this hook is used in WordPress core
<?php
3619  		 *
3620  		 * @since 6.1.0
3621  		 *
3622  		 * @param string[] $services The list of available persistent object cache services.
3623  		 */
3624  		return apply_filters( 'site_status_available_object_cache_services', $services );
3625  	}
3626  }

PHP Documentation

<?php
/**
		 * Filters the persistent object cache services available to the user.
		 *
		 * This can be useful to hide or add services not included in the defaults.
		 *
		 * @since 6.1.0
		 *
		 * @param string[] $services The list of available persistent object cache services.
		 */
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.