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 |
|---|---|
| 3517 | * Filters whether to suggest use of a persistent object cache and bypass default threshold checks. |
| 3518 | * |
| 3519 | * Using this filter allows to override the default logic, effectively short-circuiting the method. |
| 3520 | * |
| 3521 | * @since 6.1.0 |
| 3522 | * |
| 3523 | * @param bool|null $suggest Boolean to short-circuit, for whether to suggest using a persistent object cache. |
| 3524 | * Default null. |
| 3525 | */ |
| 3526 | $short_circuit = apply_filters( 'site_status_should_suggest_persistent_object_cache', null ); |
| 3527 | if ( is_bool( $short_circuit ) ) { |
| 3528 | return $short_circuit; |
| 3529 | } |
| 3530 | |
| 3531 | if ( is_multisite() ) { |
| 3532 | return true; |
| 3533 | } |
| 3534 | |
| 3535 | /** |