Skip to content

Instantly share code, notes, and snippets.

@mishterk
Last active June 3, 2022 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mishterk/18e040d9347b98179a1bbe004c118c55 to your computer and use it in GitHub Desktop.
Save mishterk/18e040d9347b98179a1bbe004c118c55 to your computer and use it in GitHub Desktop.
How to define the ACF PRO license key in code rather than storing it in the WordPress database. This Gist accompanies the article: https://www.awesomeacf.com/snippets/store-acf-pro-license-key-in-wordpress-php-configuration/
<?php
// Add this in your wp-config.php file
define('ACF_PRO_LICENSE', '{YOUR LICENSE KEY HERE}' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment