pre_site_option_{$option}

pre_site_option_{$option}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_site_option_{$option}') is found 1 times:

  • /wp-includes/option.php line 2013
    2009
    2010
    2011
    2012
    2013
    2014
    2015
    2016
    2017
    2018
    2019
    * @param int    $network_id      ID of the network.
     * @param mixed  $default_value   The fallback value to return if the option does not exist.
     *                                Default false.
     */
    $pre = apply_filters( "pre_site_option_{$option}", false, $option, $network_id, $default_value );
     
    if ( false !== $pre ) {
        return $pre;
    }
     
    // Prevent non-existent options from triggering multiple queries.