501 posts
  • Has referred 1000+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+7 more
pixelentity says

either purchase from a different account or ask a buyer to create a temporary api key for you.

83 posts Vibe
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 3 years
+2 more
VibeThemes says

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?

501 posts
  • Has referred 1000+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+7 more
pixelentity says

So what happens if user enters a wrong api key ?
envato api call would return no available updates.
1458 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
+5 more
fuelthemes says

Hi pixelentity, your code didnot work for me.

What I have done is, included your class with require_once, and then called it using

PixelentityThemeUpdate::init(buyername,buyerapikey,’turkhitbox’);

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?

501 posts
  • Has referred 1000+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+7 more
pixelentity says

PS: Do we need to upload a zip version of our theme to our items for this to work?
No, that’s not needed. There’s a line which you need to uncomment to test the class, remember to comment again before the upload.
1458 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
+5 more
fuelthemes says

Thanks for the reply, just out of curiosity, how do you or Envato understand the latest version inside zip folder?

501 posts
  • Has referred 1000+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+7 more
pixelentity says

Thanks for the reply, just out of curiosity, how do you or Envato understand the latest version inside zip folder?
well we don’t, i guess they (envato) just check style.css version in theme zip
63 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
+3 more
ProteusThemes says

@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?

63 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
+3 more
ProteusThemes says

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.

501 posts
  • Has referred 1000+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+7 more
pixelentity says

Hey,

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.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by