pre_site_option_{$option}

pre_site_option_{$option}

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

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

  • /wp-includes/option.php line 1784
    	 * @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.