Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: site_status_persistent_object_cache_notes

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2483            * Hosts may want to replace the notes to recommend their preferred object caching solution.
2484            *
2485            * Plugin authors may want to append notes (not replace) on why object caching is recommended for their plugin.
2486            *
2487            * @since 6.1.0
2488            *
2489            * @param string   $notes              The notes appended to the health check description.
2490            * @param string[] $available_services The list of available persistent object cache services.
2491            */
2492           $notes = apply_filters( 'site_status_persistent_object_cache_notes', $notes, $available_services );
2493
2494           $result['status']       = 'recommended';
2495           $result['label']        = __( 'You should use a persistent object cache' );
2496           $result['description'] .= sprintf(
2497                '<p>%s</p>',
2498                wp_kses(
2499                     $notes,
2500                     array(
2501                          'a'      => array( 'href' => true ),