Shortcodes in themes sold here are tightly bound with the theme itself. Having them in a separate plugin to be used with another theme is never going work. Quick example: how a tab (or column) shortcode using twitter bootstrap is supposed to work in a theme not using it ?
And who’s going to handle support for such situations ? neither author of new theme or author of old one will be able to so the buyer will be left alone to solve the issue. When he realize he can not, who’s going to blame in comments/ratings ?
Go here for support on the “Mentor” theme: Pixelentity Support Forums. You will need your purchase code to register.
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.
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
Maybe i’m missing something here but why should authors pay for a 3rd party service when the envato wordpress toolkit is free and able to download the update from themeforest already ?
And now i have a question for you i generate the file with php and it seems that there is a better way. How do you pass the variables exactly?
here’s an example: we have a js script registered under the id “pe_theme_video”, after that, we call
WordPress creates the “peFallBackPlayer” variable (object) right before the related script (pe_theme_video) gets loaded:
Then, in the js file, you can fetch the value:
var fbp = decodeURIComponent(window.peFallBackPlayer.url);