[wp-trac] [WordPress Trac] #34569: General purpose plugin uninstall hook
WordPress Trac
noreply at wordpress.org
Fri Dec 11 16:06:37 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 eclev91):
Looking at this, it seems like I'd have to hook to that action to get all
the plugins that ''could'' be uninstalled, and then add an
`uninstall_$file` action to listen for ''each of those files'' to catch if
the plugin truly was uninstalled.
Alternatively, hook into `update_option_uninstall_plugins`, which gives me
both the new and old values, figure out which ones are missing, and count
those as uninstalled.
Sound about right?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34569#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list