delete_site_option

FUNCTION wp-includes\option.php (ligne 1956) github
Removes an option by name for the current network.

Paramètres

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

Utilisation

// Utilisation de la fonction delete_site_option
$result = delete_site_option($option);

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

Actualités

Chargement des actualités...