update_blog_option

Advertisement

Summery Summery

Update an option for a particular blog.

Syntax Syntax

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

Parameters Parameters

$id

(Required) The blog id.

$option

(Required) The option key.

$value

(Required) The option value.

$deprecated

(Optional) Not used.

Default value: null

Return Return

(bool) True on success, false on failure.

Source Source

File: wp-includes/ms-blogs.php

 *
 * @since MU (3.0.0)
 *
 * @param int    $id         The blog ID.
 * @param string $option     The option key.
 * @param mixed  $value      The option value.
 * @param mixed  $deprecated Not used.
 * @return bool True if the value was updated, false otherwise.
 */
function update_blog_option( $id, $option, $value, $deprecated = null ) {
	$id = (int) $id;

	if ( null !== $deprecated ) {
		_deprecated_argument( __FUNCTION__, '3.1.0' );
	}

	if ( get_current_blog_id() == $id ) {

Advertisement

Changelog Changelog

Changelog
Version Description
MU (3.0.0) Introduced.

Advertisement

Leave a Reply