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βre excited to announce we've released Composer support for installing ACF PRO.
— Advanced Custom Fields (@wp_acf) January 31, 2023
π #ComposerPHP fans rejoice!
β¨ Please see the release post for all the details and full instructions. https://t.co/ebEfp61nlR
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.