[wp-hackers] Can't rely on activation hook running on upgradation?

John Blackbourn johnbillion+wp at gmail.com
Thu Jan 5 15:30:26 UTC 2012


On 5 January 2012 14:55, Raj Sekharan <flarecore at gmail.com> wrote:
> Not sure if this is a bug or I'm missing something. What needs to be done
> to ensure that some code is always run in initial activation or upgradation?

You're better off running an upgrade routine on the admin_init hook.
See http://lists.automattic.com/pipermail/wp-hackers/2011-December/041917.html

John


More information about the wp-hackers mailing list