# Activating license and initial setup via code

**URL:** <https://community.gravityforms.com/t/activating-license-and-initial-setup-via-code/12790>\
**Category:** Get Help\
**Tags:** installation, license-key, settings, activation\
**Created:** [June 9, 2022, 5:21pm UTC](https://community.gravityforms.com/t/activating-license-and-initial-setup-via-code/12790 "2022-06-09T17:21:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IHS](https://avatars.discourse-cdn.com/v4/letter/i/c77e96/32.png) [@IHS](https://community.gravityforms.com/u/IHS)\
**Post date:** [June 9, 2022, 5:21pm UTC](https://community.gravityforms.com/t/activating-license-and-initial-setup-via-code/12790/1 "2022-06-09T17:21:12Z")

</div>

I’d like to create a mu-plugin to do as much of the activation work as possible for my sites.

I see that there is a GF\_LICENSE\_KEY constant where you can enter your license key, but it doesn’t actually prompt that activation process.

Additionally, there’s the basic setup which is always the same, asking for currency, background updates, etc.

Does anyone have any advice on how these things can be automated?

I see the following options that look related:

gform\_enable\_background\_updates  
gform\_pending\_installation

Much thanks for any help?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [July 9, 2022, 5:22pm UTC](https://community.gravityforms.com/t/activating-license-and-initial-setup-via-code/12790/2 "2022-07-09T17:22:09Z")

</div>

Closed on July 9, 2022, 5:22pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
