Fires immediately after a plugin deletion attempt.
$plugin_file, $deleted
Sortie :
@param string $plugin_file Path to the plugin file relative to the plugins directory. @param bool $deleted Whether the plugin deletion was successful.
// Ajouter une fonction au hook action 'deleted_plugin'
add_action('deleted_plugin', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($plugin_file, $deleted) {
// Votre code ici
error_log('Hook deleted_plugin déclenché');
}
Chargement des actualités...