[wp-trac] [WordPress Trac] #26904: General 'uninstall_plugin' hook needed in uninstall_plugin()

WordPress Trac noreply at wordpress.org
Wed Jan 22 04:02:39 UTC 2014


#26904: General 'uninstall_plugin' hook needed in uninstall_plugin()
-----------------------------+-----------------------------
 Reporter:  Veraxus          |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Plugins          |    Version:  3.8
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 I'm working on an activity logging plugin and managed to use the
 'upgrader_process_complete' hook to detect when plugins are ''installed'',
 but while digging around core for a way to detect when plugins are
 ''deleted'', I realized that there was no existing, suitable hook.

 Now, there is an 'uninstall_'.$file hook - but that only allows targeting
 of a ''specific'' plugin... while I need to detect and identify any and
 all plugin deletions.

 I'm proposing the addition of the following hook in /wp-
 admin/includes/plugin.php, immediately after the 'uninstall_'.$file hook
 in uninstall_plugin()...

 {{{ do_action( 'uninstall_plugin', $plugin ); }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26904>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list