To make license activation easier, especially as a developer or agency, FooGallery now has the ability to auto-activate a license key.
Auto Activation Steps
- You need access to your wp-config.php in the WordPress root folder.
- Add a constant for
FOOGALLERY_LICENSE_KEYin the file, just above the line that says “That’s all, stop editing! Happy publishing.” - Install and activate FooGallery.
- Your license will be auto-activated!
Please note : it’s important that you add the license BEFORE you activate FooGallery, otherwise it will not work.
Auto Activation Code
Here is a code snippet of what your wp-config.php will look like after making the changes. Obviously, you will need to replace the dummy license key with your own.
define( 'FOOGALLERY_LICENSE_KEY', 'sk_DUMMY_KEY_REPLACE_WITH_YOURS' );
/* That's all, stop editing! Happy publishing. */
Code language: JavaScript (javascript)