How to integrate a license system into WordPress Theme Plugin

How to integrate a license system into WordPress Theme Plugin

Integrate a license system into WordPress to secure your product and business.

When you are an owner of a WordPress website or working with themes and plugins license you must ensure secure access to any plugins or tools. Because your themes, plugins, or other content can be stolen or crushed for creating negative issues. 

You can easily solve this problem and make secure use of every piece of content, plugin, and theme. For this, you need to maintain a multi-domain license management system.

You have created several plugins, themes, or pieces of content as a developer or site owner, all of which run the danger of being stolen by others.

It’s not easy to integrate a license system into WordPress that satisfies your expectations. You can choose the qualities you want from the license management system you select.

In this article, we will talk about licensing systems. Then we’ll discuss its benefits. For your convenience, we’ll briefly explain the integration system of an effective licensing system. 

What is a license key?

The license works to confirm ownership of software that is kept in a database. Proper usage of this kind of software security technology allows companies to stop illegal copying and distribution. It helps to prevent unauthorized access to the product.

A license key is an access key for WordPress plugins and themes. To be enabled, every new plugin or theme you purchase needs a license key.

WordPress software licensing provides a comprehensive method for creating, activating, and verifying license keys. License keys allow users to correctly license and activate their copies of the application.

As a developer you may worried about your plugin or other application being copied, transferred, or otherwise used illegally by non-licensed users. So, to solve this, adopting a software license system into WordPress for your products might benefit you.

Benefits of a license system in WordPress?

Integrating a licensing system into WordPress can help developers monetize their products, protect their intellectual property, provide better support and updates to legitimate users, and gather valuable insights for continuous improvement.

Implementing a licensing system into WordPress can offer several benefits, especially for developers and businesses that create and distribute premium themes or plugins. 

Some advantages to integrate a license system into WordPress:

  • A license system enables developers to sell premium WordPress themes or plugins
  • A license system helps to prevent unauthorized use or distribution of premium themes or plugins, ensuring that users have a legitimate copy obtained through proper channels.
  • Developers can restrict access to software updates and new features to users with valid licenses, encouraging them to renew their subscriptions for continued improvements.
  • Users with valid licenses can access customer support services, fostering a better user experience and satisfaction.
  • License systems can help developers track how their products are being used, providing valuable insights into user behavior, popular features, and potential areas for improvement.
  • Developers can offer incentives for license renewals, such as discounts or access to new features, encouraging users to stay subscribed.
  • License systems can automate the activation and deactivation of products, making it easier to manage user access and reduce manual administration efforts.
  • Developers can enforce terms of use through license agreements, ensuring users comply with specified terms and conditions.

How to integrate the license system into WordPress?

We’ll show you the process to integrate a license system into WordPress using an effective plugin NextLi. This plugin can serve you with all the functionalities that you need to build a license system.

Step 1: Install and set up WordPress

When you are ready to create a WordPress website the first and foremost task is to install and set up WordPress. You have to go through some easy steps to install and set up WordPress. For your convenience, you can follow the blog How to install WordPress which will help you to install WordPress.

Step 2: Activate a Theme

After installing WordPress, you need to organize your WordPress website with proper web pages, design, and content. So, in this phase, you can install and activate a suitable WordPress theme that is relatable to your purpose.  

There are so many free and premium themes available. We’ll use a free theme to show you the theme activation process. So, to install the theme, go to the WordPress admin dashboard and select Appearance.

integrate_license _into_WordPress_Theme_activation_0

Click on Themes.

integrate_a_license_system _into_WordPress_Theme_activation_1

Now, go for Add New Theme.

integrate_a_license_system _into_WordPress_m_Theme_activation_2

Here you can see some free themes like Twenty Twenty-One, Twenty Twenty- Two, Twenty Twenty-Three, Astra, etc. However, You can activate one of them. If you have any extra requirements you can search for a specific theme in this search Box. 

ntegrate_a_license_system _into_WordPress_Theme_activation_3

We’ll install the Twenty Twenty-Four theme.

integrate_license _into_WordPress_Theme_activation_4

Activate the theme.

ntegrate_a_license_system _into_WordPress_Theme_activation_5

Now you can seamlessly customize the theme according to your plan.

ntegrate_a_license_system _into_WordPress_Theme_activation_6

Step 3: Install a plugin like – EDD

As you know, we are installing the NextLi plugin to integrate a licensing system into WordPress. So, we need to download EDD (Easy Digital Download) first. 

To download Easy Digital Download, go to the Plugins section.

integrate_license _into_WordPress_EDD_activation_7

Click on the Add New Plugin button.

integrate_license _into_WordPress_EDD_activation_8

Now, search for EDD (Easy Digital Download) in the Search Box. 

integrate_a_license_system _into_WordPress_EDD_activation_9

Here, you can see the EDD (Easy Digital Download) plugin. Hit the Install plugin.

ntegrate_a_license_system _into_WordPress_EDD_activation_10

Click on the Activate button to activate the plugin. 

Integrate_license_system_with_WordPRess_EDD_activation_11

Click on Get Started

integrate_license _into_WordPress_EDD_activation_12

You have to set up all these 5 steps.

integrate_license _into_WordPress_EDD_activation_13

The first step is Business. Here you need to provide all of your business-related information such as business name, type, and address.

Integrate_license_system_with_WordPRess_EDD_activation_14

In the first step, you need to provide more information like business country, postal code, currency, etc.

Integrate_license_system_with_WordPRess_EDD_activation_15

Now click on the Save & Continue button.

Integrate_license_system_with_WordPRess_EDD_activation_16

The second step is the Payment Method. Here we’ll go to Skip the step. You can access this step and save and continue the process if you want. 

Integrate_license_system_with_WordPRess_EDD_activation_17

Now, you can set up the Email section which will be sent to your customers as a receipt. You need to set up the Logo, From Name, From Email. 

Integrate_license_system_with_WordPRess_EDD_activation_18

You can edit the email body as you want. Then hit the Save & Continue button.

Integrate_license_system_with_WordPRess_EDD_activation_19

In the fourth step, you’ll find the Tools section. Here you can Conversation & Optimization tools. Check the boxes as you require.

Integrate_license_system_with_WordPRess_EDD_activation_20

Now, you can disable the button of Join the EDD Community. Then Click on the Save & Continue button.

Integrate_license_system_with_WordPRess_EDD_activation_21

In the last or fifth step, mention the product that you want to sell. Here, you’ll need to mention your product name, image, etc. 

Integrate_license_system_with_WordPRess_EDD_activation_22

After completing all these above processes, click on the Save & Continue button.

Integrate_license_system_with_WordPRess_EDD_activation_23

Now you’ll get a Congratulations message and you can go for further process by clicking on the Edit My Product button.

Integrate_license_system_with_WordPRess_EDD_activation_24

Step 4: Add a new Digital Product

Then go to the Download section and click on the Add New button.

Integrate_license_system_with_WordPRess_EDD_activation_25

Now you can enter your product name here.

Integrate_license_system_with_WordPRess_EDD_activation_26

We’ll give a product name as digital product1.

Integrate_license_system_with_WordPRess_EDD_activation_27

You need to fix a price for this product.

Integrate_license_system_with_WordPRess_EDD_activation_28

After inserting your product name and price click on Publish button to publish it. 

Integrate_license_system_with_WordPRess_EDD_activation_29

You can see your created product name in the product list in the download section.

Integrate_license_system_with_WordPRess_EDD_activation_30

Step 5: Install a license manager plugin 

To go for further process, you need to install a license manager plugin. As mentioned earlier, here we’ll install NextLi. Because it is one of the most user-friendly and feature-rich plugins.

To install the plugin click on the Plugin tab.

Integrate_license_system_with_WordPRess_NextLI_installation_31

Then hit the Add New Plugin button.

Integrate_license_system_with_WordPRess_NextLI_installation_32

Click the Upload Plugin button.

Integrate_license_system_with_WordPRess_NextLI_installation_33

To upload the plugin’s zip file, click the Choose File button.

Integrate_license_system_with_WordPRess_NextLI_installation_34

Select the NextLi zip file from your folder. 

Integrate_license_system_with_WordPRess_NextLI_installation_35

After uploading click on the Install Now button.

Integrate_license_system_with_WordPRess_NextLI_installation_36

If you completed the installation process then Activate the plugin.

Integrate_license_system_with_WordPRess_NextLI_installation_37

Your license management plugin NextLi is ready to serve you. You can click the NextLI tab to access its panel.

Integrate_license_system_with_WordPRess_NextLI_installation_38

Step 6: Active software license of the plugin

To connect NextLi a license system into WordPress with the Easy Digital Download plugin, you need to install the EDD Software Licensing. For installation go for Plugin >> Install Plugins.

Here you can see the Install button. Click on this button.

Integrate_license_system_with_WordPRess_NextLI_installation_Install_SoftWare_license_key_39

Step 7: Enable product license 

After the above process, the following page will appear to edit and enable the licensing system. Click on the Edit button that is below your product. 

Integrate_license_system_with_WordPRess_NextLI_installation_license_activation_40

You can see an option of  Check to enable license creation.  

Integrate_license_system_with_WordPRess_license_activation_41

Check the box to enable the license system into WordPress.

Integrate_license_system_with_WordPRess_license_activation_42

Now you need to set the Activation limit.

Integrate_license_system_with_WordPRess_license_activation_43

Then set the version number of the NextLi plugin that you collected when you got the plugin.

Integrate_license_system_with_WordPRess_license_activation_44

Insert the License length and time as Days/ Weeks/ Years. Here we’ll select Years as we purchased the yearly package.

Integrate_license_system_with_WordPRess_license_activation_45

After providing all this information, click on the Update button.

Integrate_license_system_with_WordPRess_license_activation_46

Step 8: Details installation/ setup process (from documentation)

There are 3 parts of the installation to complete the setup.

Setup Plugin

  1. Download the installable WordPress plugin nextli.zip files.
  2. Upload and active plugin from WordPress → Plugins → Add New this plugin to your WP Server https://example.com/
  3. Before Active, Must be installed and Active Plugins [ EDD(Easy Digital Download), EDD License manager, NextCode ]
  4. After activation, the next step is to configure your settings. Go to WordPress Dashboard and click NextLi Settings → Api Settings → API URL: https://api.example.com/. And set up a menu or other Settings.

Setup Server

  1. Download the installable Server source code server.zip files.
  2. Upload these files on your API server → https://api.example.com/
  3. After uploading, the next step is to configure yours with WordPress Plugin NextLi. Open index.php files and set your WP URL define( ‘EDD_URL_NEXTLI’, ‘https://example.com/’);

Check license (Active or Revoke)

This API uses your product to check the valid license.

  1. Open documentation.txt for Details. Use API to check valid licenses and permission to use your products.
  2. 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

  1. Setup Extended Licence for product wise. Open extended-list.php files.
  2. Setup EDD Product Id and Licence key:
function get_extended_key(){

return [
'100' => 'extendedlicense-d15bdaade3f97602a875f675ef37d2a3-fghfgh', // productid = key
];

}

Step 9: Create a page to display my account section

To create my account section with NextLi, you can follow the given process. You can either show the account panel directly by selecting a page or you can use a shortcode to display the My Account panel.

Method 1: Selecting the page

Go to the Pages tab on the left side panel bar.

Integrate_license_system_with_WordPress_my_account_page_creation_47

Click the Add New Page button.

Integrate_license_system_with_WordPress_my_account_48

Insert your My Account page name.

Integrate_license_system_with_WordPress_my_account_49

Now click on the Publish button.

Integrate_license_system_with_WordPress_my_account_50

You can also view the created page. 

Integrate_license_system_with_WordPress_my_account_51

Now go back to the Dashboard. Go for NextLi >> User Dashboard.

Integrate_license_system_with_WordPress_my_account_52

From the Display form in the page’s drop-down menu select your created page My Account.

Integrate_license_system_with_WordPress_my_account_53

Set the form position. We are choosing the No Content Only Dashboard option.

Integrate_license_system_with_WordPress_my_account_54

After all these processes, click on the Save All Changes button.

Integrate_license_system_with_WordPress_my_account_55

You can see the account form on the required My Account page. 

Integrate_license_system_with_WordPress_my_account_56

Method 2: Using ShortCode

Go for NextLI Settings >> User Dashboard.

Integrate_license_system_with_WordPress_my_account_57

Copy the Shortcode from the User Dashboard.

Integrate_license_system_with_WordPress_my_account_57

To paste the shortcode, go to Pages >> All Pages. 

Integrate_license_system_with_WordPress_my_account_58

Click on the Edit button on the My Account Page.

Integrate_license_system_with_WordPress_my_account_59

Click on the + icon.

Integrate_license_system_with_WordPress_my_account_58

Select the Shortcode tab.

Integrate_license_system_with_WordPress_my_account_60

Paste the copied shortcode in the Shortcode field. After that, hit the Update button.

Integrate_license_system_with_WordPress_my_account_61

You can also see the form on the My Account page.

Integrate_license_system_with_WordPress_my_account_62

Step 10: Explore the ways to access the process of the plugin

Here you can see NextLi’s dashboard. You can access all features from this portion.

Click on Display Menu to create a menu section.

Integrate_license_system_with_WordPress_NextLi_63

You can check the boxes that you want to show as menus. Select the Menu position as you want.

Integrate_license_system_with_WordPress_NextLi_64

After all, changes click on the Save All Changes button.

Integrate_license_system_with_WordPress_NextLi_65

Go for Display Products to set up all the products.

Integrate_license_system_with_WordPress_NextLi_65.1

You can add products to the product list as you need. 

Integrate_license_system_with_WordPress_NextLi_66

Don’t forget to click on Save All Changes.

Integrate_license_system_with_WordPress_NextLi_67

Now click on Sale Notification.

Integrate_license_system_with_WordPress_NextLi_68

You can set the sale notification as a popup. To do so enable the button. Set position, number of days, display last order and custom date test. At last click on the Save All Changes button.

Integrate_license_system_with_WordPress_NextLi_70

Now go to the API Settings.

Integrate_license_system_with_WordPress_NextLi_71

You can set API URL in this section.

Integrate_license_system_with_WordPress_NextLi_72

To customize the form, you can go to the Style section.

Integrate_license_system_with_WordPress_NextLi_73

Setup the dashboard container width and Menu’s typography and padding.

Integrate_license_system_with_WordPress_NextLi_74

You can set the typography, button border and their colors from the portion. At last click on Save All Changes.

Integrate_license_system_with_WordPress_NextLi_75

You can also add an affiliate area in your dashboard. 

Integrate_license_system_with_WordPress_NextLi_76

Step 11: Purchase to get a license.

For your convenience and clear idea, now we’ll make a purchase to complete the purchasing procedure and get a license.

So, go to the product details page and click on the Purchase button.

Integrate_license_system_with_WordPress_NextLi_77

Then go to the Checkout page to complete the purchasing process.

Integrate_license_system_with_WordPress_NextLi_78

Now you can see your product details. Confirm by clicking on the Purchase button again.

Integrate_license_system_with_WordPress_NextLi_79

You can see here all the details about your product. Now go to the View Order details or Order page.

Integrate_license_system_with_WordPress_NextLi_80

Here on the Orders page, you can see your ordered product.

Integrate_license_system_with_WordPress_NextLi_80

Go to the Subscriptions page.

Integrate_license_system_with_WordPress_NextLi_82

 Here you can see the license details.

Integrate_license_system_with_WordPress_NextLi_83

To get the license, go to the Products page 

Integrate_license_system_with_WordPress_NextLi_84

Click on the License button.

Integrate_license_system_with_WordPress_NextLi_85

Your license will appear in this phase.

Integrate_license_system_with_WordPress_NextLi_86

From the backend portion, the business owner can see your order.

Integrate_license_system_with_WordPress_NextLi_87

Conclusion

You may find the process to integrate a license system into WordPress easier with NextLi. To secure your product, provide a secure purchasing procedure with an effective licensing system.

So, we hope this blog will help you to create a license management system. Go through the easy process and enjoy a secure licensing system in WordPress.

You may connect with us on Facebook and X. Also, check out our YouTube channel to view videos.

cleanly
Mehrin Ferdous Meem
Written by

Mehrin Ferdous Meem

Mehrin is a content writer of ThemeDev who prefers to write about tech products, travelling, health, food, lifestyle, marketing, technology etc. She also works for creating video. She has completed her Bachelor's degree in Computer Science and Engineering. Her hobbies include blogging, reading, cooking etc.

Table of Content

Table of Contents

Would you love to receive exciting offers, WordPress tips, new blog alerts, and more from ThemeDev? Just enter your email address below and press Subscribe.

Next3 Offload
Cleanly Booking
Salonly Booking
Washer Booking
Next Video Review