WordPress at a glance
function is not described

add_site_option() WP 2.8.0

Add a new option for the current network.

Existing options will not be updated. Note that prior to 3.3 this wasn't the case.

  • See: add_network_option()
  • Since 4.4.0 Modified into wrapper for add_network_option()

No Hooks.

Return

true/false. False if the option was not added. True if the option was added.

Usage

add_site_option( $option, $value );
$option(string) (required)
Name of option to add. Expected to not be SQL-escaped.
$value(mixed) (required)
Option value, can be anything. Expected to not be SQL-escaped.

Code of add site option: wp-includes/option.php VER 5.1.1

<?php
function add_site_option( $option, $value ) {
	return add_network_option( null, $option, $value );
}