AndrewTraub
Expert
Super Volunteer
Member Likes (0)
Just curious if anyone had sample or skeleton code for an auto-upgrade to add to a plug-in to enable the plug-in to notify the admin that a new version is available and automatically download and install the new version (like is done with plugins on wordpress site)?
Thanks,
Andrew

Responses (4)
Lifetime member! (joined May 2010) Likes (0)
you know, this is a bad idea. In a production environement, each update must be tested before install if you dont want to upset your whole site.
You really should always do manual update, AFTER validation in a test environnement...
Member (joined April 2009) Likes (0)
Hiya!
There was tutorial written awhile back on how to do this when you're separate from the WordPress.org repository.
Found it!
http://w-shadow.com/blog/2010/09/02/automatic-updates-for-any-plugin/
Keeper of the Dark Chocolate (joined July 2007) Likes (0)
Read the comments too as they expand on it a bit.
Gotta admit it's all over my head. We do some simple data checking with xml but that's pretty much it.
Member (joined October 2010) Likes (0)
Thank you Mason James!
Andrew
Become a member