Home › Forums › ACF PRO › Activation Code in theme code › Reply To: Activation Code in theme code
This is all just guess work.
Look at the values in the database that ACF uses. Options table, option_name = ‘acf_pro_license’
add an action as early as possible, I’m not sure how early you need to do this but it needs to be before ACF gets the value. Even then I don’t know if it will work because the option is auto loaded.
// this is the function to call in add_action()
function update_my_acf_license() {
update_option('acf_pro_license', 'value from DB', true);
}
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.