[wp-trac] [WordPress Trac] #20965: make deleting data on register_uninstall_hook optional
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 15 00:36:13 UTC 2012
#20965: make deleting data on register_uninstall_hook optional
------------------------------+------------------------------
Reporter: hallsofmontezuma | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 3.4
Severity: normal | Resolution:
Keywords: |
------------------------------+------------------------------
Changes (by ryanduff):
* cc: ryan@… (added)
* component: General => Plugins
Comment:
What about a hook to add a checkbox on the delete confirmation page? eg.
"delete all data"
The value of that would be passed to the uninstall hook and the function
could proceed accordingly since some users may want to retain the data
even though they're uninstalling.
Some plugins are simple where it's all in one spot, but other plugins add
things to post meta, etc, and it's not as simple to export a copy for
later, etc.
If the user did want to to clean up the old data they chose not to delete
before, they could always re-install the plugin, then delete and check the
box to remove all data.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20965#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list