Home › Forums › ACF PRO › get_field(‘field_name’, ‘option’) not working while called at CF7 hook › Reply To: get_field(‘field_name’, ‘option’) not working while called at CF7 hook
I have looked at this and I don’t have a clue. Any idea I have for why this would happen falls apart due to the fact that getting a field from a post works but getting a field from options does not work. If this was something in ACF neither should be working.
The only thing I can come up with is that there is some type of filter being applied during the call in ACF to the WP function get_option(). The first thing I would do is search the code on the site (all plugins and theme) to see of any of the filters applied by the WP function are used.
It could be something in ACF that I am missing. You might want to contact the developers or open a ticket on your account.
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.