Hi,
I just wanted to know if register_activation_hook is executed when a user upgrades the plugin from within the WordPress Admin?
Anyone with any ideas?
Hi,
I just wanted to know if register_activation_hook is executed when a user upgrades the plugin from within the WordPress Admin?
Anyone with any ideas?
I think so. It certainly deactivates it before it's upgraded, so it would seem likely that it's activated again afterwards.
I've had a bit of a read through the code ( wp-admin/includes/class-wp-upgrader.php ), but it's a bit convoluted and not very well commented, and i haven't got time to read it thoroughly at the moment. I need to find this out myself though, so i'll have another go at it when i've got a bit more time.
Thanks willkemp. I'm hoping to figure the same out as well, especially since users will upgrade the plugin and I hope that it works.
This topic has been closed to new replies.