[wp-hackers] notice before plugin upgrade

Rich Pedley elfin at elfden.co.uk
Tue Oct 12 16:25:31 UTC 2010

On 12/10/2010 17:02, Peter van der Does wrote:
> 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.

> 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

that looks neat, I'll try that out thanks!


More information about the wp-hackers mailing list