either purchase from a different account or ask a buyer to create a temporary api key for you.
So what happens if user enters a wrong api key ? I am asking the user to enter their api/username details in the theme options panel. Do I need to validate whether its an API key or some gibberish? what is the error that user would get?
Hi pixelentity, your code didnot work for me.
What I have done is, included your class with require_once, and then called it using
I changed theme version to a lower number on purpose so that it will think themeforest has the updated version.
PS: Do we need to upload a zip version of our theme to our items for this to work?
Thanks for the reply, just out of curiosity, how do you or Envato understand the latest version inside zip folder?
@pixelentity, that class is exactly what I was looking for to implement in my themes now. However, have you updated it recently? I was just wondering that it would be awesome if you could create a public github fork from the Envato Toolkit library, so it can stay up to date? I saw that https://github.com/envato/envato-wordpress-toolkit-library was updated 4 months ago last time.
With your permission, I would love to create this new repo as well, so I can include it in my theme as the git submodule and auto-update when needed. What do you think about this?
I created the github repo anyway, with all the credits to @pixelentity and Envato: https://github.com/primozcigler/Envato-WordPress-Theme-Updater
Updated the code a bit (so the style matches the WP Codex), added some inline documentation etc.
It is forked from Envato official repo for the protected API, so staying up to date is just the git pull <remote name> away.
i just read your post, no problems with the fork, we released that code for every author to use it
However, the problem with theme bundled class approach is that it won’t work with a network install, to solve the above we created a plugin instead:https://github.com/bitfade/themeforest-themes-update
Once installed, it will update any TF theme via Envato API.