WordPress at Your Fingertips

update_site_option() WP 1.0

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

No Hooks.

Return

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

Usage

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.

Notes

Changelog

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

Code of update_site_option() WP 5.8.1

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

Options API (settings)

Options

No comments
    Log In