wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



add_site_option › WordPress Function

Od2.8.0
Przestarzałyn/a
add_site_option ( $option, $value )
Parametry: (2)
  • (string) $option Name of the option to add. Expected to not be SQL-escaped.
    Wymagane: Tak
  • (mixed) $value Option value, can be anything. Expected to not be SQL-escaped.
    Wymagane: Tak
Zobacz:
Powrót:
  • (bool) True if the option was added, false otherwise.
Zdefiniowane na:
Codex:
Dziennik zmian:
  • 4.4.0

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.


Źródło

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