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 |
---|---|
584 | * |
585 | * Returning an array from the filter will effectively short circuit |
586 | * wp_load_alloptions(), returning that value instead. |
587 | * |
588 | * @since 6.2.0 |
589 | * |
590 | * @param array|null $alloptions An array of alloptions. Default null. |
591 | * @param bool $force_cache Whether to force an update of the local cache from the persistent cache. Default false. |
592 | */ |
593 | $alloptions = apply_filters( 'pre_wp_load_alloptions', null, $force_cache ); |
594 | if ( is_array( $alloptions ) ) { |
595 | return $alloptions; |
596 | } |
597 |
|
598 | if ( ! wp_installing() || ! is_multisite() ) { |
599 | $alloptions = wp_cache_get( 'alloptions', 'options', $force_cache ); |
600 | } else { |
601 | $alloptions = false; |
602 | } |