wppaste
WordPress

apply_filters( 'site_status_persistent_object_cache_notes', string $notes, string[] $available_services )

Since
6.1.0
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.

Compatibility

WordPress
since 6.1.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$notesstring
The notes appended to the health check description.
$available_servicesstring[]
The list of available persistent object cache services.

Where this hook fires · 1

  • wp-admin/includes/class-wp-site-health.php:2630WP_Site_Health::get_test_persistent_object_cache()

Source code

		 *		 * @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.		 */		$notes = apply_filters( 'site_status_persistent_object_cache_notes', $notes, $available_services ); 		$result['status']       = 'recommended';		$result['label']        = __( 'You should use a persistent object cache' );		$result['description'] .= sprintf(			'<p>%s</p>',			wp_kses(

Changelog

Introduced in 6.1.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.