Home › Forums › Bug Reports › Format value hook does not work for type=post_object › Reply To: Format value hook does not work for type=post_object
The reason
ACF uses it’s own hooks to format the fields at priority 10. In other words ACF formats a post object field when the acf/format_value/type={$type}
hook variant fires. This hook variant is fired before the other variants. This means that when the other variants fire ACF has already formatted the value on the type={$type}
variant hook. So the priority for the other variants does not matter.
When in doubt always add a priority > 10 for all ACF filter and action hooks because ACF uses them too.
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.