Skip to content

primozcigler/Envato-WordPress-Theme-Updater

 
 

Repository files navigation

Envato WordPress Theme Updater

WordPress library to enable automatic updates in the theme based on Envato WordPress Toolkit Library and pixelentity PHP class.

Installation & Use

Download this repo to your theme, then add

load_template( trailingslashit( get_template_directory() ) . 'wp-theme-upgrader/envato-wp-theme-updater.php' );
Envato_WP_Theme_Updater::init( $username, $apikey, $author );

to your functions.php where

$username = Buyer Username
$apikey   = Buyer API Key
$author   = Your Author Name (as defined in your themes style.css)

The first 2 parameters should be set by the buyer somehow, like in your theme options page. $author variable can be a single name, like "Pixelentity" or an array of strings. If not set, all themes purchased by the user on ThemeForest (even if by different authors) can be updated.

Authors

Feel free to contribute and improve this repo, fork it and then submit the pull request!

About

WordPress Toolkit Library for Envato Marketplace hosted items

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%