WordPress at a glance

update_site_option() WP 1.0

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

Возвращает

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

Works based on: update_network_option()

No Hooks.

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

  • See: update_network_option()

Список изменений

С версии 2.8.0 Введена.
С версии 4.4.0 Modified into wrapper for update_network_option()

Code of update_site_option() WP 5.5.1

wp-includes/option.php
<?php
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