Support

Account

Home Forums ACF PRO Pro License Key in config? Reply To: Pro License Key in config?

  • Throw this in your MU plugins https://gist.github.com/petertwise/eeb7dea2531ad204a346e42faba0179a#file-acf_pro_license_constant-php
    and then add put this in your wp-config file:
    define('ACF_PRO_LICENSE', 'yourkeyhere' );

    That can be used manually, but I also use this bash script to make it easier to install. Note that the license key is not stored in the script:
    https://gist.github.com/petertwise/eeb7dea2531ad204a346e42faba0179a#file-acf-install-license

    Please use responsibly. Never ever allow your key to become public. Never include wp-config or any files including licenses and other secrets in any version control system.

    It’s also important to double check that you are following [WP best practices and setting wp-config.php permissions](https://wordpress.org/support/article/changing-file-permissions/#shared-hosting-with-suexec) to 440 or 400 when you’re not editing the file.