Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



add_site_option ›

Seit2.8.0
Veraltetn/v
add_site_option ( $option, $value )
Parameter: (2)
  • (string) $option Name of option to add. Expected to not be SQL-escaped.
    Erforderlich: Ja
  • (mixed) $value Option value, can be anything. Expected to not be SQL-escaped.
    Erforderlich: Ja
Siehe:
Gibt zurück:
  • (bool) False if the option was not added. True if the option was added.
Definiert in:
Codex:
Changelog:
  • 4.4.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.



Quellcode

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