Make WordPress Core

Ticket #26904: delete_plugin_hook.diff

File delete_plugin_hook.diff, 469 bytes (added by Veraxus, 12 years ago)

'delete_plugins' hook - A much better, more comprehensive hook. Tested and working.

  • trunk/wp-admin/includes/plugin.php

     
    819819        if ( ! empty($errors) )
    820820                return new WP_Error('could_not_remove_plugin', sprintf(__('Could not fully remove the plugin(s) %s.'), implode(', ', $errors)) );
    821821
     822    do_action( 'delete_plugins', $plugins );
     823
    822824        return true;
    823825}
    824826