default_site_option_{$option}

default_site_option_{$option}

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

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

  • /wp-includes/option.php line 1810
    		 *                              in the database.
    		 * @param string $option        Option name.
    		 * @param int    $network_id    ID of the network.
    		 */
    		return apply_filters( "default_site_option_{$option}", $default_value, $option, $network_id );
    	}
    
    	if ( ! is_multisite() ) {
    		/** This filter is documented in wp-includes/option.php */
    		$default_value = apply_filters( 'default_site_option_' . $option, $default_value, $option, $network_id );
    		$value         = get_option( $option, $default_value );