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 |
|---|---|
| 2491 | * Hosts may want to replace the notes to recommend their preferred object caching solution. |
| 2492 | * |
| 2493 | * Plugin authors may want to append notes (not replace) on why object caching is recommended for their plugin. |
| 2494 | * |
| 2495 | * @since 6.1.0 |
| 2496 | * |
| 2497 | * @param string $notes The notes appended to the health check description. |
| 2498 | * @param string[] $available_services The list of available persistent object cache services. |
| 2499 | */ |
| 2500 | $notes = apply_filters( 'site_status_persistent_object_cache_notes', $notes, $available_services ); |
| 2501 | |
| 2502 | $result['status'] = 'recommended'; |
| 2503 | $result['label'] = __( 'You should use a persistent object cache' ); |
| 2504 | $result['description'] .= sprintf( |
| 2505 | '<p>%s</p>', |
| 2506 | wp_kses( |
| 2507 | $notes, |
| 2508 | array( |
| 2509 | 'a' => array( 'href' => true ), |