[wp-hackers] Plugin register_activation_hook()

Ade Walker photofantaisie at gmail.com
Thu Dec 29 23:21:05 UTC 2011


No, it doesn't run during upgrade. Just found the answer, doh!
http://codex.wordpress.org/Function_Reference/register_activation_hook

So, what is best practice for a plugin handling, say, a WP version check
when upgrading? Can I rely on the plugin upgrade error checking to catch a
PHP fatal error, and subsequently deactivate the plugin?

Thanks for any suggestions.

2011/12/29 Ade Walker <photofantaisie at gmail.com>

> Hi all,
>
> Can anyone confirm that a plugin's registered activation hook is always
> fired during the auto upgrade process?
>
> Thanks!
>
> Ade.
>


More information about the wp-hackers mailing list