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

Update an option for a particular blog.

Description Description

Parameters Parameters


(int) (Required) The blog id.


(string) (Required) The option key.


(mixed) (Required) The option value.


(mixed) (Optional) Not used.

Default value: null

Top ↑

Return Return

(bool) True on success, false on failure.

Top ↑

Source 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__, '3.1.0' );

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

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

	return $return;

Top ↑

Changelog Changelog

Version Description
MU (3.0.0) Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.