[wp-hackers] register_uninstall_hook VS uninstall.php
Otto
otto at ottodestruct.com
Fri May 7 20:14:15 UTC 2010
On Fri, May 7, 2010 at 2:08 PM, Davit Barbakadze <jayarjo at gmail.com> wrote:
> Do you find any issue with my solution?
Only that it seems wholly unnecessary.
What exactly is the issue here? Your plugin shouldn't do anything of
consequence merely from being included. Quite honestly, NO plugin
should do anything of consequence from merely being included.
Take your "on load" stuff and move it inside a function that's hooked
to plugins_loaded instead, so it'll run that stuff after the normal
load process. plugins_loaded doesn't get triggered on the uninstall,
so you'll be safe there.
-Otto
More information about the wp-hackers
mailing list