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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.