everybody likes videos more than words, so first things first, here’s what we’re talking about: http://youtu.be/3UNA5AHEFF0
A while ago, envato released its wordpress toolkit which is great and we used it to include the automatic updates feature in our themes.
However, using a custom Theme_Upgrader turned out to be not such an easy task and we ended up adding quite some glue code. So, inspired by a recent thread here in the forums, we did a small research and found thishttps://github.com/jeremyclark13/automatic-theme-plugin-update
In short, the author uses the “pre_set_site_transient_update_themes” to inject custom updates in the native WordPress update system, which is so great because all you need to do now is using the Envato API to
- check if your theme has an update
- get the download link
- inject the above in the WordPress update system
So we created a small class using only class-envato-protected-api.php from the Envato toolkit and made available for all authors to download and use in their own theme: download link
You don’t have permission to access /wp-content/uploads/2012/09/pixelentity-theme-update.zip on this server.
I can’t download it.
EDIT : After “page reload” I was able to download it.
Bookmarked! This is really awesome and nice from you to giveaway!
Will definitely implement when i have the time ..
This looks awesome! Does it work with plugins too? How users provide purchasecode and API key?
Edit: ok I’ve read the readme – seems plugins doesn’t work with this
no more purchase codes. the buyer needs to enter only his username and api key. nice
revaxarts saidNope, as far as i know, envato apis only handle theme updates for now.
Does it work with plugins too? How users provide purchasecode and API key?
Purchase code is not needed, only buyer username/api key. The class must be provided the values, how to get them from the end user is author business but one would tipically add a couple of extra fields in theme options page.
Is there any solution for WP plugins?