Comments on: WordPress plugin update hook – upgrader_process_complete https://pluginrepublic.com/wordpress-plugin-update-hook-upgrader_process_complete/ WooCommerce Plugins Mon, 30 Jul 2018 14:26:26 +0000 hourly 1 By: Andrew https://pluginrepublic.com/wordpress-plugin-update-hook-upgrader_process_complete/#comment-10818 Mon, 30 Jul 2018 14:26:26 +0000 https://pluginrepublic.com/?p=2527#comment-10818 In reply to Gareth.

Use with caution: When you use the upgrader_process_complete action hook in your plugin and your plugin is the one which under upgrade, then this action will run the old version of your plugin.

This was found in the Wordpress documentation.

]]>
By: Igor https://pluginrepublic.com/wordpress-plugin-update-hook-upgrader_process_complete/#comment-7845 Fri, 27 Apr 2018 21:06:34 +0000 https://pluginrepublic.com/?p=2527#comment-7845 In reply to Gareth.

I’ve tested it and it in fact runs from the old version of the plugin, not the updated one, which makes it fairy useless if you want to for example change table structure of your custom DB tables in the new version.

]]>
By: Gareth https://pluginrepublic.com/wordpress-plugin-update-hook-upgrader_process_complete/#comment-5776 Tue, 16 Jan 2018 11:46:13 +0000 https://pluginrepublic.com/?p=2527#comment-5776 In reply to Maxwell.

Hi – that’s a good question. I believe it runs from the updated version but I haven’t checked this.

]]>
By: Maxwell https://pluginrepublic.com/wordpress-plugin-update-hook-upgrader_process_complete/#comment-5764 Mon, 15 Jan 2018 18:29:42 +0000 https://pluginrepublic.com/?p=2527#comment-5764 In reply to Maxwell.

I have one question about this hook: when it triggers, the updated plugin is already running on the updated version right? or when this triggers the plugin still is on the older version?

]]>
By: Maxwell https://pluginrepublic.com/wordpress-plugin-update-hook-upgrader_process_complete/#comment-5763 Mon, 15 Jan 2018 17:05:06 +0000 https://pluginrepublic.com/?p=2527#comment-5763 Awesome way to handle updates. Transients are new for me, i will try to learn more about them. Thanks.

]]>