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

Andrew Nacin wp at andrewnacin.com
Mon Sep 20 15:04:12 UTC 2010


On Mon, Sep 20, 2010 at 10:19 AM, Raj <list at expost.org> wrote:

> When a plug-in is upgraded through the administrator panel's plugin
> interface (when already activated), will the activation hook be executed?


Historically, yes, but only during a single upgrade. However, it is not
executed as part of a bulk update. Which is probably something to be
classified as a bug.

Generally it is good to keep track of a database version and run an upgrade
routine when necessary.


More information about the wp-hackers mailing list