Uma área de pesquisa sobre o WordPress para devs e autores do tema



add_site_option ›

Desde2.8.0
Obsoleton/a
add_site_option ( $option, $value )
Parâmetros: (2)
  • (string) $option Name of option to add. Expected to not be SQL-escaped.
    Required: Yes
  • (mixed) $value Option value, can be anything. Expected to not be SQL-escaped.
    Required: Yes
Ver:
Retorna:
  • (bool) False if the option was not added. True if the option was added.
Definido em:
Codex:
Log de mudanças:
  • 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.



Fonte

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