Define Your License Key in wp-config.php

Available on:
Free
Premium

Starting in v14.15.2 the plugin supports defining your license key(s) directly in the wp-config.php file. This feature is useful for developers and advanced users who prefer managing licenses through code instead of through the WordPress admin panel.

Usage

Single License

To define a single license key, add the following line to your wp-config.php file:

define('WP_STATISTICS_LICENSE', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');

This will register the license automatically when WP Statistics loads.

Multiple Licenses

If you have more than one license (for example, for different add-ons or multiple activations), you can define them as an array:

define('WP_STATISTICS_LICENSE', [
    'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
]);

WP Statistics will attempt to validate and activate each license key.

How It Works

Notes and Best Practices

Let’s get started
Take your business to next level

Become part of our growing family of +600,000 users and get the tools you need to make smart choices for your website. Simple, powerful insights are just a click away.