wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



update_site_option › WordPress Function

Depuis2.8.0
Dépréciéen/a
update_site_option ( $option, $value )
Paramètres: (2)
  • (string) $option Name of the option. Expected to not be SQL-escaped.
    Requis: Oui
  • (mixed) $value Option value. Expected to not be SQL-escaped.
    Requis: Oui
Voir:
Retourne:
  • (bool) True if the value was updated, false otherwise.
Défini(e) dans:
Codex:
Changelog:
  • 4.4.0

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



Source

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