update_site_option

FUNCTION wp-includes\option.php (ligne 1971) github
Updates the value of an option that was already added for the current network.

Paramètres

Entrée :
$option, $value
Sortie :
@param string $option Name of the option. Expected to not be SQL-escaped.
@param mixed  $value  Option value. Expected to not be SQL-escaped.
@return bool True if the value was updated, false otherwise.

Utilisation

// Utilisation de la fonction update_site_option
$result = update_site_option($option, $value);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...