WordPress at a glance

update_site_option() WP 1.0

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

Is the basis for: grant_super_admin()
Works based on: update_network_option()

No Hooks.


true/false. False if value was not updated. True if value was updated.


update_site_option( $option, $value );
$option(string) (required)
Name of 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-includes/option.php WP 5.4.2

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

Related Functions

From tag: Options API (settings)

No comments
        Log In . Register