Filter hook 'site_status_persistent_object_cache_notes'
in WP Core File wp-admin/includes/class-wp-site-health.php at line 2569
Description
Filters the second paragraph of the health check's description when suggesting the use of a persistent object cache. 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.
Occurrences
Filename |
Line Number |
wp-admin/includes/class-wp-site-health.php |
2569 |
Parameters
Type |
Name |
Description |
string |
$notes |
The notes appended to the health check description. |
string[] |
$available_services |
The list of available persistent object cache services. |
PHP Doc
/**
* Filters the second paragraph of the health check's description
* when suggesting the use of a persistent object cache.
*
* 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.
*
* @since 6.1.0
*
* @param string $notes The notes appended to the health check description.
* @param string[] $available_services The list of available persistent object cache services.
*/