WPDev.one
Core Function
View Source on Trac ↗

add_site_option()

add_site_option( mixed $option, mixed $value )

Adds a new option for the current network.

Parameters 2 required

Name / Type Description
$option
string

Name of the option to add. Expected to not be SQL-escaped.

Required
$value
mixed

Option value, can be anything. Expected to not be SQL-escaped.

Required

Return Value

(bool)
True if the option was added, false otherwise.

Function Information

Since Version
2.8.0
Source File
wp-includes/option.php
Advertisement