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.
- WordPress 4.5 or higher
- PHP 5.6 or higher
- Software Licensing for WHMCS
Download the installable ZIP file and upload it to your plugins directory via WP Admin > Plugins > Add New.
- Clone the repository to your WordPress plugins directory.
- Run
composer install
in the directory from the command prompt.
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).