pre_site_option_{$option}

pre_site_option_{$option}

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

See hook in core

Displaying hooks found in version: wordpress-6.9

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

  • /wp-includes/option.php line 2038
    	 * @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 );
    
    	/**
    	 * Filters the value of any existing network option before it is retrieved.
    	 *
    	 * Returning a value other than false from the filter will short-circuit retrieval
    	 * and return that value instead.