Home › Forums › General Issues › Action before get_field function › Reply To: Action before get_field function
This is not possible. You’ll either need to choose a different function or use the available hooks. What you want to do is why there are hooks in ACF that let you filter values, for example acf/load_value https://www.advancedcustomfields.com/resources/acfload_value/ and acf/format_value https://www.advancedcustomfields.com/resources/acfformat_value/.
Instead of calling your field and deciding whether to call the acf function or not you call the acf function and then you can filter the value returned after the fact.
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.