Skip to content
GravityKit
Buy
Sign in
0 items
  • Plugins

    GravityKit All Access

    Our complete Kit of essential tools for extending and enhancing Gravity Forms—everything you need to build powerful web apps and workflows.

    Learn more
    • GravityView

      GravityView

      Bestseller

      Display Gravity Forms entries on the front-end of your site and build powerful web applications.

    • GravityImport

      GravityImport

      Trending

      Import entries from CSV files into Gravity Forms to transfer data, create new forms, or update existing entries.

    • GravityEdit

      GravityEdit

      Quickly edit Gravity Forms entries inline to save time, reduce clicks, and streamline your workflow.

    • GravityCharts

      GravityCharts

      Trending

      Turn Gravity Forms entries into interactive charts and graphs.

    • GravityActions

      GravityActions

      Update multiple Gravity Forms entries at once, send bulk emails, and streamline your workflow.

    • GravityCalendar

      GravityCalendar

      Turn Gravity Forms entries into dynamic calendars to showcase events, schedules, appointments, and more.

    • GravityExport

      GravityExport

      Export Gravity Forms entries to Excel, CSV, PDF, or Google Sheets, then share them with secure links or deliver them to cloud storage on a schedule.

    • GravityMath

      GravityMath

      Perform advanced calculations on Gravity Forms entries to display totals, averages, or build custom calculators.

    • GravityRevisions

      GravityRevisions

      Track, compare, and restore changes made to Gravity Forms forms and entries with a full version history.

    • GravityMigrate

      GravityMigrate

      Migrate all Gravity Forms data between sites, including forms, entries, settings, Views, feeds, and file uploads, and import forms from other form plugins.

    • GravityBoard

      GravityBoard

      Manage projects with collaborative project management. Coordinate with your team and streamline your workflows.

    • GravitySearch

      GravitySearch

      Search Gravity Forms entries across every form from one screen.

  • Ideal For

    • Nonprofits
    • Web Agencies
    • Education
    • Developers
    • Small Businesses
    • Startups
    Explore All Use Cases

    Case studies

    • Be There Local
    • Killer Shorts
    • West Fork Schools
    • Princeton University
    • BrightLeaf Giving
    • Jacksonville Port Authority
    • National Severe Storms Lab
    • Leadpal
    View All Case Studies
  • Resources

    • Blog
    • Case studies
    • Newsletter
    • GravityKit vs competitors
    • Live Demos
    • Documentation
    • Developer docs
    • GravityKit Academy

    Ultimate guides

    • How to use Gravity Forms
    • Editing Gravity Forms entries
    • Importing Gravity Forms entries
    • Exporting Gravity Forms entries
    • Displaying Gravity Forms entries
    • Gravity Forms conditional logic
    • Gravity Forms calculations
    View More Articles
  • Support
  • Pricing
  • Plugins

    • GravityView

      GravityView

      Bestseller

      Display Gravity Forms entries on the front-end of your site and build powerful web applications.

    • GravityImport

      GravityImport

      Trending

      Import entries from CSV files into Gravity Forms to transfer data, create new forms, or update existing entries.

    • GravityEdit

      GravityEdit

      Quickly edit Gravity Forms entries inline to save time, reduce clicks, and streamline your workflow.

    • GravityCharts

      GravityCharts

      Trending

      Turn Gravity Forms entries into interactive charts and graphs.

    • GravityActions

      GravityActions

      Update multiple Gravity Forms entries at once, send bulk emails, and streamline your workflow.

    • GravityCalendar

      GravityCalendar

      Turn Gravity Forms entries into dynamic calendars to showcase events, schedules, appointments, and more.

    • GravityExport

      GravityExport

      Export Gravity Forms entries to Excel, CSV, PDF, or Google Sheets, then share them with secure links or deliver them to cloud storage on a schedule.

    • GravityMath

      GravityMath

      Perform advanced calculations on Gravity Forms entries to display totals, averages, or build custom calculators.

    • GravityRevisions

      GravityRevisions

      Track, compare, and restore changes made to Gravity Forms forms and entries with a full version history.

    • GravityMigrate

      GravityMigrate

      Migrate all Gravity Forms data between sites, including forms, entries, settings, Views, feeds, and file uploads, and import forms from other form plugins.

    • GravityBoard

      GravityBoard

      Manage projects with collaborative project management. Coordinate with your team and streamline your workflows.

    • GravitySearch

      GravitySearch

      Search Gravity Forms entries across every form from one screen.

    View All Products

    GravityKit All Access

    Our complete Kit of essential tools for extending and enhancing Gravity Forms—everything you need to build powerful web apps and workflows.

    Learn more
  • Ideal For

    • Nonprofits
    • Web Agencies
    • Education
    • Developers
    • Small Businesses
    • Startups
    Explore All Use Cases

    Case studies

    • Be There Local
    • Killer Shorts
    • West Fork Schools
    • Princeton University
    • BrightLeaf Giving
    • Jacksonville Port Authority
    • National Severe Storms Lab
    • Leadpal
    View All Case Studies

    How to build...

    • Client Portal
    • AI-Built Directory
    • Conference Website
    • WordPress CRM
    • Admin Dashboard
    • Inventory Management
    • Vendor Portal
    • Document Library
    View All Guides
  • Resources

    • Blog
    • Case studies
    • Newsletter
    • GravityKit vs competitors
    • Live Demos
    • Documentation
    • Developer docs
    • GravityKit Academy

    ultimate guides

    • How to use Gravity Forms
    • Editing Gravity Forms entries
    • Importing Gravity Forms entries
    • Exporting Gravity Forms entries
    • Displaying Gravity Forms entries
    • Gravity Forms conditional logic
    • Gravity Forms calculations
    View More Articles
  • Support
  • Pricing
0 items

Search

Results appear automatically as you type.
Loading results…

results found matching

    Sign in
    Buy

    Docs

    • Docs Home

    Gravity Forms Add-Ons

    • GravityView
    • GravityActions
    • GravityBoard
    • GravityCalendar
    • GravityCharts
    • GravityEdit
    • GravityExport
    • GravityImport
    • GravityMath
    • GravityRevisions
    • GravitySearch
    • GF Widget for Elementor
    • GF Dynamic Lookup
    • GF Entry Tags
    • GF Event Field
    • GravityExport Lite
    • GF Zero Spam
    • GravityMigrate

    GravityView

    • Getting Started
    • View Setup
    • FAQ
    • Pre-Sale
    • Advanced
    • Common Problems
    • Customizing Your Views
    • Edit Entry
    • Entry Approval
    • Filter and Sort Results
    • Gravity Forms
    • Merge Tags
    • Roles and Capabilities
    • Search
    • Shortcodes
    • View Settings
    • WordPress Posts

    General Help

    • Account, Invoices, and Billing
    • License Related
    • Plugins and Settings
    • Agency accounts
    • Contact
    • Docs Home
    • Gravity Forms Add-Ons

      • GravityView
      • GravityActions
      • GravityBoard
      • GravityCalendar
      • GravityCharts
      • GravityEdit
      • GravityExport
      • GravityImport
      • GravityMath
      • GravityRevisions
      • GravitySearch
      • GF Widget for Elementor
      • GF Dynamic Lookup
      • GF Entry Tags
      • GF Event Field
      • GravityExport Lite
      • GF Zero Spam
      • GravityMigrate
    • GravityView

      • Getting Started
      • View Setup
      • FAQ
      • Pre-Sale
      • Advanced
      • Common Problems
      • Customizing Your Views
      • Edit Entry
      • Entry Approval
      • Filter and Sort Results
      • Gravity Forms
      • Merge Tags
      • Roles and Capabilities
      • Search
      • Shortcodes
      • View Settings
      • WordPress Posts
    • General Help

      • Account, Invoices, and Billing
      • License Related
      • Plugins and Settings
      • Agency accounts
    • Contact

    General Help

      • Changing the payment method on your subscription
      • Renewing your license
      • Downloading a copy of your invoice
      • GravityKit W-9 Form (Tax ID)
      • Invoice information is incorrect
      • Nonprofit pricing
      • Refunds
      • Transferring your license
      • Turning off auto-renew subscriptions
      • Understanding Time-Based Proration for License Upgrades
      • Update your invoice with company name, address, or VAT number
      • Upgrading your license
      • Your GravityKit Account page
      • Managing connected sites
      • Renewing your license
      • About the “GravityView + Extensions (Legacy)” license
      • Can’t deactivate license key
      • Development websites and GravityKit licenses
      • Downgrading your license
      • Granting GravityKit Support Access to Your Website
      • GravityKit pricing updates FAQ
      • Hard-coding your license key
      • Is PDF for GravityView included in All Access?
      • Managing GravityKit products and licenses with WP-CLI
      • Managing your licenses
      • Multisite and GravityKit licenses
      • Products show as unlicensed
      • The license key keeps disappearing
      • Transferring your license
      • Upgrading your license
      • GravityKit code signing: technical overview
      • How to download and install an older version of a GravityKit plugin
      • How to temporarily disable GravityKit plugins using a URL parameter
      • Installing a build sent by GravityKit support
      • Using Visual Merge Tags
      • How to Get the Most Out of GravityKit Support
      • How to hide the “Function _load_textdomain_just_in_time was called incorrectly” notice
      • How To Import App Templates to Your Site
      • If you see a “This link has expired” or “Are you sure you want to do this?” message when installing a plugin
      • Installing standalone plugins
      • Installing, Activating, and Updating GravityKit Plugins
      • Locating and Updating Settings for GravityKit Products
      • Managing GravityKit products and licenses with WP-CLI
      • The “Download failed. Unauthorized” message
      • A license your agency manages: what it means for you
      • Adding clients and giving them licenses
      • Getting a client to pay: payment links and card-update links
      • Managing licenses for your clients with an agency account
      • Moving a license between you and a client
    • Home
    • Docs
    • General Help
    • License Related
    • Hard-coding your license key

    Hard-coding your license key

    Estimated reading: 4 minutes

    Updated on October 1, 2026

    You can put your GravityKit license keys in wp-config.php instead of entering them on the Manage Your Kit page. GravityKit reads the keys from there. When the license data stored on the site becomes unreadable, for example after a migration changes the site’s secret keys, GravityKit adds those keys back by itself.

    Add your keys to wp-config.php #

    Add this line to wp-config.php, above the line that says That's all, stop editing!, and replace YOUR_LICENSE_KEY with your key:

    define( 'GRAVITYKIT_LICENSES', 'YOUR_LICENSE_KEY' );

    To add more than one key, list them:

    define( 'GRAVITYKIT_LICENSES', [ 'FIRST_LICENSE_KEY', 'SECOND_LICENSE_KEY' ] );

    Your keys are on the Licenses page of your GravityKit account. If you haven’t edited wp-config.php before, see Editing wp-config.php in the WordPress documentation.

    Sites that already use the older GRAVITYVIEW_LICENSE_KEY constant don’t need to change anything. GravityKit still reads that constant the same way.

    What GravityKit does with the keys #

    The next time an administrator opens the WordPress dashboard, GravityKit checks each key with the GravityKit server and saves it with the site’s other licenses. It also activates any key that isn’t active on any site yet. GravityKit checks new keys at most once every 5 minutes, so a key can take a few minutes to appear. If the key’s status on Manage Your Kit doesn’t read Active yet, click Refresh next to the Manage Your Kit heading.

    When a key is already active on another site, GravityKit saves it without activating it, and its status reads Not Activated for This Site. To use one of the license’s activations here, go to GravityKit, then Manage Your Kit, and click Activate on the key’s row.

    On Manage Your Kit, a hard-coded key shows Set in wp-config.php where other keys have a Deactivate link. You can only change or remove it in wp-config.php.

    Licenses table with a hard-coded license whose row shows Set in wp-config.php, outlined

    A key you entered on Manage Your Kit before adding it to wp-config.php keeps its Deactivate link. As long as the key is in wp-config.php, GravityKit adds it back on a later visit after you deactivate it, and after a key change.

    When a key from wp-config.php never shows up on Manage Your Kit, check it for typos. GravityKit skips keys that the GravityKit server doesn’t recognize and checks them again on a later visit, at most once every 5 minutes.

    WordPress Multisite #

    On a Multisite network, a hard-coded key is a network-wide license. It covers every site on the network, including sites you add later, and it uses one activation, recorded for the network’s main address. Network administrators see its row on Manage Your Kit, with a Network badge next to the status. Administrators of individual sites on the network don’t see it. See Multisite and GravityKit licenses for how network-wide licenses differ from per-site ones.

    Hard-coded keys come back after a key change #

    If the site’s WordPress secret keys (salts) change, or you add or change GRAVITYKIT_SECRET_KEY, the licenses saved on the site can no longer be read. Keys in wp-config.php come back by themselves. GravityKit adds them again on the next dashboard visit and checks at most once every 5 minutes.

    After a move to a new address, a key whose license is still active elsewhere, such as at the old address, comes back as Not Activated for This Site. Click Activate on its row.

    Keys you entered on Manage Your Kit have to be entered again. See The license key keeps disappearing for the causes and how to prevent them.

    Removing a hard-coded key #

    Delete the key from wp-config.php. GravityKit removes it from Manage Your Kit the next time an administrator opens the dashboard.

    The site still holds one of the license’s activations after that. To free it, sign in to your GravityKit account, open Licenses, click the × next to the site’s address on the license, and confirm.

    Who can see hard-coded keys #

    GravityKit stores license keys encrypted in the database, and the WordPress dashboard shows only the first and last few characters of each key. Hard-coding a key doesn’t change that, but anyone who can read wp-config.php can see the full key there.

    Still stuck? How can we help?

    How can we help?

    "*" indicates required fields

    This field is for validation purposes and should be left unchanged.
    Replies will go to this email.
    How can we help?*
    My pre-sale question is related to...*
    My WordPress skills are....*
    My Gravity Forms skills are...*
    You will be shown articles from our documentation.
    Vous pouvez nous écrire dans votre langue maternelle si c’est plus facile pour vous—nous nous occuperons de la traduction!
    Puedes escribirnos en tu idioma nativo si te resulta más fácil; ¡nosotros nos encargamos de la traducción!
    Sie können uns in Ihrer Muttersprache schreiben, wenn das für Sie einfacher ist – wir kümmern uns um die Übersetzung!
    U kunt ons in uw moedertaal schrijven als dat gemakkelijker voor u is — wij zorgen voor de vertaling!
    Du kan skrive til oss på ditt morsmål hvis det er enklere for deg — vi tar oss av oversettelsen!
    Du kan skriva till oss på ditt modersmål om det är lättare för dig — vi tar hand om översättningen!
    Você pode nos escrever em seu idioma nativo se for mais fácil para você — nós cuidaremos da tradução!
    Puoi scriverci nella tua lingua madre se ti è più facile — penseremo noi alla traduzione!
    Please provide as much detail as you're able; this helps us provide you with faster support.
    Drop files here or
    Accepted file types: jpg, jpeg, gif, png, tiff, pdf, bmp, zip, json, csv, xls, xlsx, Max. file size: 256 MB.
      Get better at Gravity Forms every Friday

      Was this page helpful?

      Table Of Contents
      • Add your keys to wp-config.php
      • What GravityKit does with the keys
      • WordPress Multisite
      • Hard-coded keys come back after a key change
      • Removing a hard-coded key
      • Who can see hard-coded keys
      GravityKit
      • How to Build It
      • GravityKit vs competitors
      • Pricing
      • Products
      • Our Team
      • Our Values
      • Work With Us
      • Partner Directory
      • Coupons
      Support
      • Support
      • Contact
      • Documentation
      • Scope of Support
      • Brand Guidelines
      • Privacy Policy
      • Terms of Service (“Terms”)
      I am a...
      • Nonprofit
      • Web agency
      • Small business owner
      • Web developer
      • Educational institution
      • WordPress freelancer
      • Startup founder
      • One-person agency
      Get notified of updates.

      We’re constantly improving GravityKit. Fill out your email below and we’ll notify you anytime major updates drop.

      See past editions
      • Facebook
      • Twitter
      • Mastodon
      GravityKit is a Gravity Forms Certified Developer.

      Copyright © 2026, Katz Web Services, Inc.

      GravityKit and GravityView are registered trademarks of Katz Web Services, Inc.

      Live demos, product updates, real answers

      A free live session and Q&A on Tuesday, October 20 at 11am ET / 5pm CET

      Register Now