deleted_plugin

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

Paramètres

Entrée :
$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.

Utilisation

// 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é');
}

Actualités

Chargement des actualités...