[wp-hackers] Plugin activation/deactivation and testing?

Otto otto at ottodestruct.com
Fri Nov 20 14:37:08 UTC 2009

Yes, the uninstall hook is fired when the plugin gets deleted, not deactivated.

Somebody correct me if I'm incorrect.

Sent from Memphis, TN, United States

On Thu, Nov 19, 2009 at 9:49 PM, mark waterous <mark at watero.us> wrote:
>> Just a quick comment .. one very common recommendation on the forums
>> when people have problems upgrading is to deactivate all plugins, try
>> the automatic upgrade, then re-activate the plugins.
>> Therefore the deactivation hook should not destroy any tables ..
> That didn't even cross my mind! I think it would be best if I removed my
> deactivation hook immediately in favor of register_uninstall_hook as scribu
> suggested, along with making it a prominent feature on the options page,
> part of the readme... at least then if some people wind up with remnants, I
> can say I tried. ;)
> --
> Mark Waterous
> http://mark.watero.us/
> (mark at watero.us)
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list