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