Summery Summery

Adds a new option for the current network.

Syntax Syntax

add_site_option( string $option, mixed $value )

Description Description

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

Parameters Parameters


(string) (Required) Name of option to add. Expected to not be SQL-escaped.


(mixed) (Required) Option value, can be anything. Expected to not be SQL-escaped.

Return Return

(bool) False if the option was not added. True if the option was added.

Source Source

File: wp-includes/option.php

 * Private. Sets all user interface settings.


Changelog Changelog

Version Description
4.4.0 Modified into wrapper for add_network_option()
2.8.0 Introduced.

See also See also


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.