WordPress at a glance

update_site_option() WP 1.0

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

  • See: update_network_option()
  • Since 4.4.0 Modified into wrapper for update_network_option()
Is the basis for: grant_super_admin()
Works based on: update_network_option()

No Hooks.

Return

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

Usage

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.

Code of update_site_option: wp-includes/option.php VER 4.9.8

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

Related Functions

From tag: Options API (settings)

No comments
    Hello, !     Log In . Register