Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete plugin's data when uninstalling #11

Open
marcochiesi opened this issue Oct 24, 2014 · 2 comments
Open

Delete plugin's data when uninstalling #11

marcochiesi opened this issue Oct 24, 2014 · 2 comments

Comments

@marcochiesi
Copy link
Collaborator

marcochiesi commented Oct 24, 2014

I think it would be nice to clean up things if a user decides to remove the plugin. In particular delete options, postmeta, custom capabilities, etc.
As for the custom capabilities (see #8) the current dev version deletes them when deactivating the plugin, but it would be probably better to do it when uninstalling.
Which way would you prefer: register_uninstall_hook hook or uninstall.php file (see codex)?

@tlovett1
Copy link
Owner

I think an uninstall.php file is fine. What do you think?

@marcochiesi
Copy link
Collaborator Author

Fine, will do when I have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants