Skip to content

Instantly share code, notes, and snippets.

@dancameron
Created January 13, 2015 23:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dancameron/4c0b28aebf45bbfd905b to your computer and use it in GitHub Desktop.
Single License Step 1 Example
<?php
// retrieve the license key from the DB *of the main product*
$license_key = trim( get_option( 'edd_sample_license_key' ) );
$edd_updater = new EDD_SL_Plugin_Updater( EDD_SL_STORE_URL, __FILE__, array(
'item_id' => 123, // the item_id (aka post_id) of the download on your site
'version' => '1.0', // current version number of the extension
'license' => $license_key, // license key of the main product to validate a license against
'item_name' => EDD_SL_ITEM_NAME, // name of this extension
'author' => 'Pippin Williamson', // author of this extension
'url' => home_url()
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment