[wp-hackers] Uninstall Handling
eric at eam.me
Fri Apr 8 22:15:51 UTC 2011
In the past, I've seen developers place an "Uninstall" link on the plugins
page for their plugin. Then they bind any uninstall scripts to this link
and also deactivate the plugin at the same time.
Is that the kind of setup you're looking for? I'm not sure what else you're
trying to accomplish or how you're trying to do it.
On Fri, Apr 8, 2011 at 2:54 PM, Ken Brucker <Ken at pumastudios.com> wrote:
> Hi all - been lurking for a while, first time asking a question here.
> I'm trying to cleanup a bunch of stuff that gets put into the database
> related to a plugin I'm writing but am stymied by the flow in
> delete_plugins(). I've got my uninstall.php file setup and have found that
> unless I provide FTP login information during the Delete operation I can't
> get to the point that the uninstall script will run.
> Should I open a bug in the tracker to have the delete_plugins() flow
> improved to allow the uninstall process to run separate from the file
> deletion? I really want to clean the database and don't want (or need) WP
> to go do the actual file deletion.
> And any thoughts on how to get my uninstall to run given the current state
> of the logic?
> I don't want to do the cleanup when the plugin is deactivated since there
> are many reasons to deactivate on a temporary basis.
> -- Ken
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers