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.
From version 14.15.2
onwards, you can activate your licenses directly from the wp-config.php
file. This feature is especially helpful for users who need to activate licenses on multiple sites and prefer simply copying and pasting a code snippet rather than manually entering license keys for each add-on on each site, whether on a multisite network or individual WordPress installations.
1. Open wp-config.php
for editing.
2. Find a suitable location, ideally towards the end of the file, above the line that says /* That's all, stop editing! Happy publishing. */
.
3. Add the license keys by defining the WP_STATISTICS_LICENSE
constant:
For multiple add-ons (if you have licenses for more than one add-on), define the keys as an array:
define('WP_STATISTICS_LICENSE', [
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
]);
Or, you can define them as a comma-separated string:
define('WP_STATISTICS_LICENSE', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
For a single license (e.g., WP Statistics Premium or a single add-on), define it as a single string:
define('WP_STATISTICS_LICENSE', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
4. Save the changes to the wp-config.php
file.
5. Visit your site and go to Statistics > Add-Ons to confirm that licenses have been activated.
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.