[wp-trac] [WordPress Trac] #34569: General purpose plugin uninstall hook

WordPress Trac noreply at wordpress.org
Wed Nov 4 08:35:52 UTC 2015


#34569: General purpose plugin uninstall hook
-------------------------+------------------------------
 Reporter:  eclev91      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Plugins      |     Version:  4.3.1
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  administration
-------------------------+------------------------------

Comment (by swissspidy):

 The `'uninstall_' . $file` can't be deprecated. It's essential for plugins
 that want to register uninstall functionality (though using an
 `uninstall.php` file is encouraged. See `register_uninstall_hook()`.

 If really needed and useful, a `pre_uninstall` action could be added. For
 your use case, hooking into the `pre_update_option_uninstall_plugins` hook
 should work though.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34569#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list