update_blog_option( int $id, string $option, mixed $value, mixed $deprecated = null )

Update an option for a particular blog.


Parameters

$id

(Required) The blog id.

$option

(Required) The option key.

$value

(Required) The option value.

$deprecated

(Optional) Not used.

Default value: null


Return

(bool) True on success, false on failure.


Source

File: wp-includes/ms-blogs.php

function update_blog_option( $id, $option, $value, $deprecated = null ) {
	$id = (int) $id;

	if ( null !== $deprecated  )
		_deprecated_argument( __FUNCTION__, 'WP-3.1.0' );

	if ( get_current_blog_id() == $id )
		return update_option( $option, $value );

	switch_to_blog( $id );
	$return = update_option( $option, $value );
	restore_current_blog();

	return $return;
}


Changelog

Changelog
Version Description
WP-MU Introduced. (3.0.0)