Home › Forums › Add-ons › Options Page › Options Values in functions.php › Reply To: Options Values in functions.php
You’ve probably either figured this out after 2 years or you’ve moved on, but for anyone with a similar problem. When doing this type of check it’s usually best to do it on ‘init’. The functions you’re trying to access may not be ready until after that point and there are some aspects of ACF that will not function properly until after the ‘init’ hook.
add_action('init', 'my_init_function');
function my_init_function() {
// run your checks here
}
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.