---
title: "Auto License Activations using wp-config.php"
id: "192463"
type: "knowledgebase"
slug: "auto-license-activations-using-wp-config-php"
published_at: "2026-01-09T16:30:29+00:00"
modified_at: "2026-01-09T16:30:30+00:00"
url: "https://fooplugins.com/documentation/foogallery/developers/auto-license-activations-using-wp-config-php/"
markdown_url: "https://fooplugins.com/documentation/foogallery/developers/auto-license-activations-using-wp-config-php.md"
excerpt: "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 Please note : it’s important that you add the license BEFORE you activate FooGallery, otherwise it..."
taxonomy_knowledgebase_cat:
  - "FooGallery - Developers"
---

[FooGallery – Developers](https://fooplugins.com/documentation/foogallery/developers/)

# Auto License Activations using wp-config.php

## Related Articles

- [Change Gallery Output HTML](https://fooplugins.com/documentation/foogallery/developers/change-gallery-output-html/)
- [Override Image Captions](https://fooplugins.com/documentation/foogallery/developers/override-image-captions/)
- [Add NoFollow to Custom Links](https://fooplugins.com/documentation/foogallery/developers/add-nofollow-custom-links/)
- [Custom Hover Icons](https://fooplugins.com/documentation/foogallery/developers/custom-hover-icons/)
- [Force Thumbnail Links To Load In New Tab](https://fooplugins.com/documentation/foogallery/developers/force-thumbnail-links-load-new-tab/)
- [Add Class To All Gallery Thumbnail Links](https://fooplugins.com/documentation/foogallery/developers/add-class-gallery-thumbnail-links/)
- [Override Create Gallery Page Content](https://fooplugins.com/documentation/foogallery/developers/override-create-gallery-page-content/)
- [Display a Gallery in PHP code](https://fooplugins.com/documentation/foogallery/developers/display-a-gallery-in-php-code/)
- [FooGallery Developer 101](https://fooplugins.com/documentation/foogallery/developers/foogallery-developer-101/)
- [Developers](https://fooplugins.com/documentation/foogallery/developers/developers/)
- [Customize Your Gallery Using Custom CSS](https://fooplugins.com/documentation/foogallery/developers/customize-gallery-custom-css/)
- [Common FooGallery Custom CSS Customisation Tweaks](https://fooplugins.com/documentation/foogallery/developers/common-foogallery-custom-css/)
- [FooGallery Hooks](https://fooplugins.com/documentation/foogallery/developers/foogallery-hooks/)

**Need more help?** Browse all documentation or open a support ticket.

[All docs](/documentation/)

[Support](/support/)

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)
```

Resources

## Find the right next step

Use this grid for documentation indexes, support routes, account links, affiliate resources, and download pages.

![Image](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)

### Documentation

Search setup guides, product docs, and troubleshooting articles.

[Browse docs](/documentation/)

![Image](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)

### Support

Open a ticket with product details so we can help quickly.

[Get support](/support/)

![Image](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)

### Licensing

Review account, renewal, refund, and license information.

[View details](/licensing/)
