add_site_option


add_site_option ( $option, $value )

Parameters:
  • (string) option Name of option to add. Expected to not be SQL-escaped.
  • (mixed) value Option value, can be anything. Expected to not be SQL-escaped.
See:
Returns:
  • (bool) False if the option was not added. True if the option was added.
Defined at:
Change Log:
  • 4: .

Description

Adds a new option for the current network.Existing options will not be updated. Note that prior to 3.3 this wasn't the case.

Related Functions

add_screen_option, get_site_option, add_option, delete_site_option, update_site_option

Top Google Results

User discussions

wpseek mobile