GithubHelp home page GithubHelp logo

isabella232 / edd-license-handler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from awesomemotive/edd-license-handler

0.0 0.0 0.0 35 KB

License / updater handler for Easy Digital Downloads extensions

edd-license-handler's Introduction

EDD License Handler

The EDD_License class is included in Easy Digital Downloads core and should not be included in any integration for Easy Digital Downloads.

Who is this for?

The use of this example is intended for extensions that integrate with Easy Digital Downloads, being sold on stores using Easy Digital Downloads and the Software Licensing extension, so that they can display a license key field within the Easy Digital Downloads settings.

Registering your EDD Extension with the License Handler:

If you have an extension for Easy Digital Downloads, that you wish to have your license key field show in the Downloads > Settings > Licenses list, use the following to register your Extension with the License Handler.

// Easy Digital Downloads includes the licnese handler class already, you do not need to include it.

/*
 * Parameters to send to the license handler
 *
 * $plugin_file     - The main plugin file name being registered
 * $product_name    - The name of the Downlaod on the store (exact match)
 * $product_version - The version of the plugin
 * $author_name     - The author name for the plugin
 * $item_id         - This is the post_id of the Download
 * $store_url       - The store URL where this product should check for updates
 *
 */
// $license = new EDD_License( $plugin_file, $product_name, $product_version, $author_name, $item_id, $store_url
if ( class_exists( 'EDD_License' ) ) {
    $license = new EDD_License( __FILE__, 'Product Name', '1.0.0', 'Author Name', 1, 'http://example.org' );
}

Requirements

This class can only be used with EDD v1.7 and later.

edd-license-handler's People

Contributors

chriscct7 avatar cklosowski avatar jordymeow avatar pippinsplugins avatar sunnyratilal avatar x-raym 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.