update_site_option( string $option, mixed $value )

Updates the value of an option that was already added for the current network.

Description Description

Top ↑

See also See also

Top ↑

Parameters Parameters


(string) (Required) Name of the option. Expected to not be SQL-escaped.


(mixed) (Required) Option value. Expected to not be SQL-escaped.

Top ↑

Return Return

(bool) True if the value was updated, false otherwise.

Top ↑

Source Source

File: wp-includes/option.php

function update_site_option( $option, $value ) {
	return update_network_option( null, $option, $value );

Top ↑

Changelog Changelog

Version Description
4.4.0 Modified into wrapper for update_network_option()
2.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

  1. Skip to note 1 content
    Contributed by bcworkz

    As of 4.0, despite this function’s name, the value is stored in the network’s sitemeta table, not the site’s options table.

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