[wp-hackers] Will Activation Hook Be Executed During Plugin Upgradation?

Otto otto at ottodestruct.com
Mon Sep 20 18:51:49 UTC 2010

On Mon, Sep 20, 2010 at 1:33 PM, Milan Dinić <liste at srpski.biz> wrote:
> Yes, but isn't easiest to do this on activation?

If you are storing the version in your plugin options somewhere, then
it's easiest to do it at init or anywhere else you are already pulling
the options. A simple call to version_compare is fairly lightweight.

I don't like activation hooks, personally. Though I do see the need for them.


More information about the wp-hackers mailing list