[wp-hackers] notice before plugin upgrade

Peter van der Does peter at avirtualhome.com
Tue Oct 12 16:02:10 UTC 2010


On Tue, 12 Oct 2010 16:04:52 +0100
Rich Pedley <elfin at elfden.co.uk> wrote:

> I realise this is only suitable for automatic upgrades but is there
> any method that I can hook into the upgrade routine for plugins with
> a custom message prior to the automatic download/upgrade?
> 
> I need to make changes to a core file of my plugin and want everyone
> to have the chance to _not_ upgrade to it. I intend doing this in a
> few versions time, so want to put the code in place _now_ to try and
> catch as many people as possible.
> 
> Obviously I can't do anything for anyone manually upgrading.
> 
> Thoughts and ideas welcomed.
> 
> Rich
You could use the action-hook in_plugin_update_message-{$file}

Have a look at my plugin AVh First Defense Against Spam to see what I
did.
http://plugins.trac.wordpress.org/browser/avh-first-defense-against-spam/tags/3.0/class/avh-fdas.admin.php


-- 
Peter van der Does

GPG key: E77E8E98

IRC: Ganseki on irc.freenode.net
Twitter: @petervanderdoes

WordPress Plugin Developer
Blog: http://blog.avirtualhome.com
Forums: http://forums.avirtualhome.com
Twitter: @avhsoftware


More information about the wp-hackers mailing list