Auto License Activations using wp-config.php

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

  1. You need access to your wp-config.php in the WordPress root folder.
  2. Add a constant for FOOGALLERY_LICENSE_KEY in the file, just above the line that says “That’s all, stop editing! Happy publishing.”
  3. Install and activate FooGallery.
  4. 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)