pre_wp_load_alloptions

pre_wp_load_alloptions

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_wp_load_alloptions') is found 1 times:

  • /wp-includes/option.php line 606
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    *
     * @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 );