Coder Social home page Coder Social logo

edd-license-handler's Introduction

EDD License Handler

License / updater handler for Easy Digital Downloads extensions.

This class should be instantiated with all premium EDD extensions sold through EasyDigitalDownloads.com in order to include licensing and updates.

// Load the EDD license handler only if not already loaded. Must be placed in the main plugin file
if( class_exists( 'EDD_License' ) ) {
	// Instantiate the licensing / updater. Must be placed in the main plugin file
	$license = new EDD_License( __FILE__, 'Extension Name Here', '1.0', 'Your Name' );
}

Full Example:

// Load the EDD license handler only if not already loaded. Must be placed in the main plugin file
if( class_exists( 'EDD_License' ) )
	$license = new EDD_License( __FILE__, 'PDF Stamper', '1.0.5', 'Daniel J Griffiths' );
}

Own Updater API Example:

If you want to use this class with your website's "Easy Digital Downloads - Software Licenses" plugin then you need to provide your website URL as shown below.

// Load the EDD license handler only if not already loaded. Must be placed in the main plugin file
if( ! class_exists( 'EDD_License' ) )
	include( dirname( __FILE__ ) . '/includes/EDD_License_Handler.php' );

$license = new EDD_License( __FILE__, 'Testimonials Widget Premium', '1.13.4', 'Michael Cannon', null, 'http://aihr.us' );

Requirements

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

edd-license-handler's People

Contributors

chriscct7 avatar pippinsplugins avatar sunnyratilal avatar

Watchers

 avatar  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.