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 |
---|---|
306 | * |
307 | * Returning an array from the filter will effectively short circuit |
308 | * wp_load_alloptions(), returning that value instead. |
309 | * |
310 | * @since 6.2.0 |
311 | * |
312 | * @param array|null $alloptions An array of alloptions. Default null. |
313 | * @param bool $force_cache Whether to force an update of the local cache from the persistent cache. Default false. |
314 | */ |
315 | $alloptions = apply_filters( 'pre_wp_load_alloptions', null, $force_cache ); |
316 | if ( is_array( $alloptions ) ) { |
317 | return $alloptions; |
318 | } |
319 |
|
320 | if ( ! wp_installing() || ! is_multisite() ) { |
321 | $alloptions = wp_cache_get( 'alloptions', 'options', $force_cache ); |
322 | } else { |
323 | $alloptions = false; |
324 | } |