Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Talk:Function Reference/register uninstall hook

Delete vs. Uninstall

The page says:

"Registers the uninstall hook that will be called when the user clicks on the uninstall link that calls for the plugin to uninstall itself."

However the current WordPress shows "delete" link for deactivated plugin?


When you click the "delete" link, it will take you to a screen that asks you whether you want to just delete the plugin files, or whether you want the plugin to also uninstall its data. Only if you choose the second option does the plugin actually get uninstalled, and only then is this hook called. If you'd like, you can edit the page to clarify this.
-Jdgrimes (talk) 19:50, 16 May 2015 (UTC)