pre_wp_load_alloptions

pre_wp_load_alloptions

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('pre_wp_load_alloptions') is found 1 times:

  • /wp-includes/option.php line 606
    	 *
    	 * @param array|null $alloptions  An array of alloptions. Default null.
    	 * @param bool       $force_cache Whether to force an update of the local cache from the persistent cache. Default false.
    	 */
    	$alloptions = apply_filters( 'pre_wp_load_alloptions', null, $force_cache );
    	if ( is_array( $alloptions ) ) {
    		return $alloptions;
    	}
    
    	if ( ! wp_installing() || ! is_multisite() ) {
    		$alloptions = wp_cache_get( 'alloptions', 'options', $force_cache );