### [How to Define Your WPForms License in the WordPress Config File](https://wpforms.com/developers/how-to-define-your-wpforms-license-in-the-wordpress-config-file/)

**Published:** November 6, 2019
**Author:** Editorial Team

**Excerpt:** This tutorial walks you through how to define your license for WPForms inside your WP config file. 

**Content:**

## Introduction

Would you prefer to use the WordPress config file to define your license? You can easily do that with one line of PHP. In this tutorial, we’re going to walk you through each step to define the WPForms license inside the WordPress config file.

You can easily enter and [verify your license key](https://wpforms.com/docs/verify-wpforms-license/ "How to Verify Your WPForms License") through the **WPForms » Settings » General** tab.

![WPForms license key entry](https://wpforms.com/wp-content/uploads/2019/11/wpforms-license-key.jpg)

However, by defining your license key inside the `wp-config.php` file, it will automatically populate the license key for you inside the **Settings** panel.

## Adding the snippet

First, you’ll need to access your WordPress files on your server. Either through an [FTP](http://www.wpbeginner.com/glossary/ftp/ "What is: FTP"), [cPanel](http://www.wpbeginner.com/glossary/cpanel "What is: cPanel") or through an [FTP File Manager plugin](https://www.wpbeginner.com/plugins/how-to-add-a-ftp-like-file-manager-in-wordpress-with-wp-file-manager/ "How to Add a FTP like File Manager in Your WordPress Dashboard").

Once your site files are open, you’ll need to open `wp-config.php` for editing. This will be located [in the root folder](http://www.wpbeginner.com/beginners-guide/beginners-guide-to-wordpress-file-and-directory-structure/ "Beginner’s Guide to WordPress File and Directory Structure") of your site.

![Open wp-config file to enable debugging in WordPress](https://wpforms.com/wp-content/uploads/2019/08/ftp-edit-wp-config-file.jpg)

The [wp-config file](http://www.wpbeginner.com/beginners-guide/how-to-edit-wp-config-php-file-in-wordpress/ "How to Edit wp-config.php File in WordPress") contains site-specific configuration settings, such as database information and, potentially, settings added by your hosting provider.

Just copy and paste the code snippet below to your `wp-config.php` and save the changes.

```

// Define license key
define( 'WPFORMS_LICENSE_KEY', 'your-license-key' );
```

Just replace the text **your-license-key** with your own license key! And that’s all you need to define your license in the WordPress config file!

Would you like to enable debugging on your site? Take a look at this tutorial on [How to Enable Debugging in WordPress](https://wpforms.com/developers/how-to-enable-debugging-in-wordpress/ "How to Enable Debugging in WordPress").

**Categories:** Tutorials

**Tags:** PHP

---

