Home › Forums › ACF PRO › Does "post_object" field go through "acf/render_field" twice? › Reply To: Does "post_object" field go through "acf/render_field" twice?
I talked to the developer and he said that there is not much he can do about this. As you said, you should somehow check the key and see if it’s already run. Alternately, if your filter is only running on one specific field, you can have the filter remove itself, for example.
add_filter('acf/render_field', 'my_acf_renter_field', 1);
function my_acf_renter_field($field) {
remove filter ('acf/render_field', 'my_acf_renter_field', 1);
// the rest of your filter code
}
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.