On this page
apply_filters( 'site_status_persistent_object_cache_notes', string $notes, string[] $available_services )
Filters the second paragraph of the health check’s description when suggesting the use of a persistent object cache.
Description
Hosts may want to replace the notes to recommend their preferred object caching solution.
Plugin authors may want to append notes (not replace) on why object caching is recommended for their plugin.
Parameters
$notesstring-
The notes appended to the health check description.
$available_servicesstring[]-
The list of available persistent object cache services.
Source
File: wp-admin/includes/class-wp-site-health.php. View all references
$notes = apply_filters( 'site_status_persistent_object_cache_notes', $notes, $available_services );
Related
Used By
| Used By | Description |
|---|---|
| WP_Site_Health::get_test_persistent_object_cache() wp-admin/includes/class-wp-site-health.php | Tests if the site uses persistent object cache and recommends to use it if not. |
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/site_status_persistent_object_cache_notes