[wp-trac] [WordPress Trac] #26904: General 'delete_plugins' hook needed
WordPress Trac
noreply at wordpress.org
Fri Nov 21 09:35:57 UTC 2014
#26904: General 'delete_plugins' hook needed
-----------------------------+------------------------------
Reporter: Veraxus | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 3.8
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+------------------------------
Comment (by juliobox):
Hello
@nacin : This is absolutly not a plugin territory since plugin A could
hook on plugin B. So when someone deletes plugin B, the hook from plugin A
will trigger.
Real example:
The plugin WP Rocket add a hook on "uninstall_woocommerce/woocommerce.php"
because when Wooc is deleted, WP Rocket needs to remove the "cart" page
from the expluded pages from cache.
But this works only if Wooc has use the uninstall hook and not the
uninstall file, not logical.
@TobiasBG : This argument is not valid, you can't refuse a hook because of
a possible missuse from a user. Using this way of thinking, why do we have
a hook on user_delete if someone can delete it directly from PHPMYADMIN?
So, it's not relevant, sorry.
Thanks to add this simple hook quickly to restore the balance into the
force ;)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26904#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list