deleted_theme

ACTION wp-admin\includes\theme.php (ligne 98) github
Fires immediately after a theme deletion attempt.

Paramètres

Entrée :
$stylesheet, $deleted
Sortie :
@param string $stylesheet Stylesheet of the theme to delete.
@param bool   $deleted    Whether the theme deletion was successful.

Utilisation

// Ajouter une fonction au hook action 'deleted_theme'
add_action('deleted_theme', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($stylesheet, $deleted) {
    // Votre code ici
    error_log('Hook deleted_theme déclenché');
}

Actualités

Chargement des actualités...