Support

Account

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
    }