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



update_site_option ›

Desde2.8.0
Obsoleton/a
update_site_option ( $option, $value )
Parâmetros: (2)
  • (string) $option Name of option. Expected to not be SQL-escaped.
    Required: Yes
  • (mixed) $value Option value. Expected to not be SQL-escaped.
    Required: Yes
Ver:
Retorna:
  • (bool) False if value was not updated. True if value was updated.
Definido em:
Codex:
Log de mudanças:
  • 4.4.0 Modified into wrapper for update_network_option

Update the value of an option that was already added for the current network.



Fonte

function update_site_option( $option, $value ) {
	return update_network_option( null, $option, $value );
}