site_status_available_object_cache_services
云策文档标注
概述
此过滤器用于修改用户可用的持久对象缓存服务列表,允许开发者隐藏或添加默认未包含的服务。
关键要点
- 过滤器名称:site_status_available_object_cache_services
- 参数:$services(字符串数组),表示可用的持久对象缓存服务列表
- 用途:在WP_Site_Health::available_object_cache_services()方法中被调用,用于返回服务列表
- 引入版本:WordPress 6.1.0
原文内容
Filters the persistent object cache services available to the user.
Description
This can be useful to hide or add services not included in the defaults.
Parameters
$servicesstring[]-
The list of available persistent object cache services.
Source
return apply_filters( 'site_status_available_object_cache_services', $services );
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |