Fires immediately after a theme deletion attempt.
$stylesheet, $deleted
Sortie :
@param string $stylesheet Stylesheet of the theme to delete. @param bool $deleted Whether the theme deletion was successful.
// 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é');
}
Chargement des actualités...