WordPress at a glance

update_site_option() WP 1.0

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

Works based on: update_network_option()

No Hooks.


true|false. True if the value was updated, false otherwise.


update_site_option( $option, $value );
$option(string) (required)
Name of the option. Expected to not be SQL-escaped.
$value(mixed) (required)
Option value. Expected to not be SQL-escaped.


  • See: update_network_option()


Since 2.8.0 Introduced.
Since 4.4.0 Modified into wrapper for update_network_option()

Code of update_site_option() WP 5.7.2

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

From tag: Options API (settings)

No comments
    Log In