Git Product home page Git Product logo

envato-wordpress-theme-updater's Introduction

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!

envato-wordpress-theme-updater's People

Contributors

armanm avatar bfintal avatar japh avatar primozcigler avatar valendesigns avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.