WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
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 ), |