WooCommerce Software License Manager

WooCommerce Software License Manager

Wordpress plugin

Install on Wordpress

App Details

Seamless integration between WooCommerce and the Software License Manager Plugin. Originally adopted from EDD Software License Manager, thanks to flowdee ([email protected]).

Github repository

https://github.com/shamloo/wc-software-license-manager

Features

  • Automatically creates license keys for each sale with WC
  • Licensing is optional and can be activated/deactivated individually
  • Send generated license keys to your customers within your existing email notifications

Sample code

<?php /* Plugin Name: License Checker Version: v1.0 Plugin URI: http://wp-master.ir Author: Omid Shamloo Author URI: http://wp-master.ir Description: Sample plugin to show you how you can interact with the software license manager API from your WordPress plugin or theme */ // This is the secret key for API authentication. You configured it in the settings menu of the license manager plugin. define('YOUR_SPECIAL_SECRET_KEY', 'YOUR_SPECIAL_SECRET_KEY'); //Rename this constant name so it is specific to your plugin or theme. // This is the URL where API query request will be sent to. This should be the URL of the site where you have installed the main license manager plugin. Get this value from the integration help page. define('YOUR_LICENSE_SERVER_URL', 'http://wp-master.ir'); //Rename this constant name so it is specific to your plugin or theme. // This is a value that will be recorded in the license manager data so you can identify licenses for this item/product. define('YOUR_ITEM_REFERENCE', 'YOUR_ITEM_REFERENCE'); //Rename this constant name so it is specific to your plugin or theme. add_action('admin_menu', 'slm_sample_license_menu'); function slm_sample_license_menu() { add_options_page('Sample License Activation Menu', 'Sample License', 'manage_options', 'youlice_classesence', 'sample_license_management_page'); } function sample_license_management_page() { echo '<div class="wrap">'; echo '<h2>Sample License Management</h2>'; /*** License activate button was clicked ***/ if (isset($_REQUEST['activate_license'])) { $license_key = $_REQUEST['sample_license_key']; // Send query to the license manager server $lic = new youlice_class($license_key , YOUR_LICENSE_SERVER_URL , YOUR_SPECIAL_SECRET_KEY ); if($lic->active()){ echo 'You license Activated successfuly'; }else{ echo $lic->err; } } $lic = new youlice_class($license_key , YOUR_LICENSE_SERVER_URL , YOUR_SPECIAL_SECRET_KEY ); if($lic->is_licensed()){ echo 'Thank You Phurchasing!'; }else{ ?> <form action="" method="post"> <table class="form-table"> <tr> <th style="width:100px;"><label for="sample_license_key">License Key</label></th> <td ><input class="regular-text" type="text" id="sample_license_key" name="sample_license_key" value="<?php echo get_option('sample_license_key'); ?>" ></td> </tr> </table> <p class="submit"> <input type="submit" name="activate_license" value="Activate" class="button-primary" /> </p> </form> <?php } echo '</div>'; } class youlice_class{ public $lic; public $server; public $api_key; private $wp_option = 'product_1450'; private $product_id = 'My_product_name_OR_ID'; public $err; public function __construct($lic=false , $server , $api_key){ if($this->is_licensed()) $this->lic = get_option($this->wp_option); else $this->lic = $lic; $this->server = $server; $this->api_key = $api_key; } /** * check for current product if licensed * @return boolean */ public function is_licensed(){ $lic = get_option($this->wp_option); if(!empty( $lic )) return true; return false; } /** * send query to server and try to active lisence * @return boolean */ public function active(){ $url = YOUR_LICENSE_SERVER_URL . '/?secret_key=' . YOUR_SPECIAL_SECRET_KEY . '&slm_action=slm_activate&license_key=' . $this->lic . '&registered_domain=' . get_bloginfo('siteurl').'&item_reference='.$this->product_id; $response = wp_remote_get($url, array('timeout' => 20, 'sslverify' => false)); if(is_array($response)){ $json = $response['body']; // use the content $json = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', utf8_encode($json)); $license_data = json_decode($json); } if($license_data->result == 'success'){ update_option( $this->wp_option, $this->lic ); return true; }else{ $this->err = $license_data->message; return false; } } /** * send query to server and try to deactive lisence * @return boolean */ public function deactive(){ } } 

Theme & Plugin Integration

Please Note: The license validation part for your distributed plugins and themes is not part of this plugin. More on this can be found in the Software License Manager documentation.

To implement License Key validation in your plugin or theme, please check out the sample code in Maddison Designs’ Github repo.

Attention
Known incompatibility issue with iThemes Security
If you have installed “iThemes Security”, uncheck Long URL Strings where the Software License Manager plugin is installed

Credits

Translates

Configuration

The plugin is really simple and well structured so you don’t have to prepare a lot in order to get it working.

  1. After the successful installation you will find a prepared options page here: “WooCommerce” > “Settings” > “Products” > “License Manager”
  2. Enter your Software License Manager API credentials
  3. Go to your Products and activate licensing where it’s required

Pricing

Starting from $0 per month.

Check Out the Pricing Tables Widget

By Common Ninja

Pricing TablesTry For Free!

App Info

Rating

Reviewers

10 reviews

Tags

software license
software license manager
wc
wc license
wc software license

Developed By

Omid Shamloo

Quick & Easy

Find the Best Wordpress plugins for you

Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!

Testimonial

Testimonial plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Maps

Maps plugins for Wordpress

Translation

Translation plugins for Wordpress

Chat

Chat plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Contact

Contact plugins for Wordpress

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Forms

Forms plugins for Wordpress

Comments

Comments plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Comments

Comments plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Video Player

Video Player plugins for Wordpress

popup

popup plugins for Wordpress

SiteMap

SiteMap plugins for Wordpress

Payment

Payment plugins for Wordpress

Coming Soon

Coming Soon plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Sliders

Sliders plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Security

Security plugins for Wordpress

Ads

Ads plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Membership

Membership plugins for Wordpress

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Common Ninja Apps

Some of the best Common Ninja plugins for Wordpress

Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.

Pricing Tables for Wordpress logo

Pricing Tables

Add pricing tables to your site to present plans clearly, help visitors compare features, and guide them toward faster and more confident conversions.

Restaurant Menu for Wordpress logo

Restaurant Menu

Create an online restaurant menu that organizes dishes, highlights key items, and helps visitors explore options with confidence.

All In One Chat for Wordpress logo

All In One Chat

Add a unified chat tool to your site that connects users via WhatsApp, Messenger, Telegram, or email for seamless support.

AdBlocker Detector for Wordpress logo

AdBlocker Detector

Detect ad blockers on your site to maintain visibility into user behavior and support sustainable ad-based monetization.

Visitor Counter for Wordpress logo

Visitor Counter

Show real time visitor counts with a visitor counter widget that displays live traffic, builds social proof, and boosts engagement.

Feedback Form for Wordpress logo

Feedback Form

Collect user insights with a feedback form that gathers valuable input, improves user experience, and helps you understand visitor needs more clearly.

Real Estate Listings for Wordpress logo

Real Estate Listings

Create real estate listings with a listings widget that displays properties clearly, supports customization, and helps visitors explore homes more easily.

Image Wall for Wordpress logo

Image Wall

Showcase visuals with an image wall that creates a parallax style gallery, offers smooth scrolling, and presents images in customizable, engaging layouts.

TikTok Slider for Wordpress logo

TikTok Slider

Show TikTok videos with a TikTok slider that displays clips in an engaging, customizable slideshow to boost visibility and keep visitors watching.

Image Gallery for Wordpress logo

Image Gallery

Showcase photos with an image gallery that displays pictures and captions in grids, improves design, and boosts visitor engagement.

Image Slider for Wordpress logo

Image Slider

Showcase visuals with an image slider that displays multiple images in a smooth slideshow, improves design, and keeps visitors engaged.

Collapsible Content for Wordpress logo

Collapsible Content

Use Collapsible Content sections to structure information on your site and make it easier for visitors to find what they need.

More plugins

plugins You Might Like

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms