Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 2.2 KB

File metadata and controls

43 lines (27 loc) · 2.2 KB

Author Donate WP Engine GitHub License Twitter

WHMCS Licensing Example WordPress Plugin

Description

This is a very simple example of how to do license key checks against the Software Licensing addon for WHMCS.

The author of this plugin has no affiliation with and this plugin is neither endorsed nor supported by WHMCS Limited.

Requirements

Installation

WordPress

Download the installable ZIP file and upload it to your plugins directory via WP Admin > Plugins > Add New.

Composer

  1. Clone the repository to your WordPress plugins directory.
  2. Run composer install in the directory from the command prompt.

Configuration

Before you can test the plugin, you need to modify the plugin.json file in the root of the plugin folder.

  • url - The URL to your WHMCS installation.
  • product_key - The "Secret Key" as configured in your licensed product in WHMCS.
  • local_key_expire_days - The number of days between license checks.
  • allow_check_fail_days - The number of days to allow failed validations (in the event that your WHMCS installation is inaccessible).

Screenshot

Settings Page