A WordPress plugin that automatically activates Freemius licenses defined in the wp-config.php file.
This tool can be installed as any other WordPress plugin:
To install this tool as a must-use plugin, copy/upload the auto-activate-freemius-licenses.php file to the /wp-content/mu-plugins/ directory.
To configure the license keys, add the following global variable to your wp-config.php file anywhere before the line /* That's all, stop editing! Happy publishing. */
:
/* Define Freemius licenses in the format: 'plugin_id' => 'license key' */
$fs_auto_activate_licenses = array(
'4466' => 'sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // Oxygen Attributes
'5819' => 'sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // Hydrogen Pack
'6334' => 'sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // Advanced Scripts
);
Make sure to remove the placeholder line of the other plugins you are not using.
Once the plugin is activated and configured, your Freemius licenses will be automatically activated when the plugins are loaded.