Info #back to top
- Item Name : NextLi - EDD License Management System Plugin.
- Item Version : v1.0.0
- Last Updated : 07 Feb 2021
- Author : ThemeDev
Installation #back to top
There are 3 part of install to complate setup.
Setup Plugin
- Download the installable WordPress plugin
nextli.zip
files. - Upload and active plugin from
WordPress
→Plugins
→Add New
this plugin on your WP Serverhttps://example.com/
- Before Active, Must be install and Active Plugins [ EDD(Easy Digital Download), EDD License manager, NextCode ]
- After activation, next step is to configure your settings. Go to WordPress Dashboard and click NextLi Settings → Api Settings → API URL :
https://api.example.com/
. And setup menu or others Settings.
Setup Server
- Download the installable Server source code
server.zip
files. - Upload this files on your api server →
https://api.example.com/
- After uploaded, next step is to configure your with Wordpress Plugin NextLi. Open
index.php
files and set your WP URLdefine( 'EDD_URL_NEXTLI', 'https://example.com/');
Check licence (Active or Revoke)
This api use of your product for checking valid licence.
- Open documentation.txt for Details. Use API for check valid licence and permission for use your products.
- Follow this code:
$product_id = 10;
$key = isset($_POST['key_license']) ? trim($_POST['key_license']) : '';
$config['key'] = $key;
$config['eddid'] = $product_id;
$config['eddv'] = '1.0.0';
$config['eddtigger'] = 'active'; // active, revoke
$header = array();
$header[] = 'Content-length: 0';
$header[] = 'Content-type: application/json; charset=utf-8';
$verify_url = "https://api.example.com/?".http_build_query($config, '&');
$ch_verify = curl_init( $verify_url );
curl_setopt( $ch_verify, CURLOPT_HTTPHEADER, $header );
curl_setopt( $ch_verify, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt( $ch_verify, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch_verify, CURLOPT_CONNECTTIMEOUT, 5 );
curl_setopt( $ch_verify, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
$result = curl_exec( $ch_verify );
curl_close( $ch_verify );
$result = ($result != "") ? json_decode($result) : false;
Extended Licence #back to top
- Setup Extended Licence for product wise. Open
extended-list.php
files. - Setup EDD Product Id and Licence key:
function get_extended_key(){
return [
'100' => 'extendedlicense-d15bdaade3f97602a875f675ef37d2a3-fghfgh', // productid = key
];
}