delete_option

FUNCTION wp-includes\option.php (ligne 1123) github
This filter is documented in wp-includes/option.php  		if ( apply_filters( "default_option_{$option}", false, $option, false ) !== get_option( $option ) ) { 			return false;

Paramètres

Entrée :
$option
Sortie :
@param string $option Name of the option to add.
@param mixed  $value  Value of the option.
@param string $option Name of the option to add.
@param mixed  $value  Value of the option.
@param string $option Name of the added option.
@param mixed  $value  Value of the option.
@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_option
$result = delete_option($option);

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

Actualités

Chargement des actualités...