Home › Forums › Bug Reports › ACF PRO: Possible bug in acf/save_post › Reply To: ACF PRO: Possible bug in acf/save_post
Hi guys.
Sorry for the late reply.
It is no longer possible to hook into the ‘acf/save_post’ action (with a priority of less than 10) before ACF has saved it’s data.
Instead, you can hook into the validation which is always run before saving. This can be done on a field by field level with the filter acf/validate_field
(http://www.advancedcustomfields.com/resources/acf-validate_value/) or the action 'acf/validate_save_post'
(no docs yet, but found in core/input.php on line 430)
Also, $_POST['fields']
has changed to a safer $_POST['acf']
Sorry for the inconvenience, and please be sure to let me know if the logic you are trying to accomplish is not possible with these alternatives.
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!
🚨 The 2023 ACF Annual Survey closes tomorrow! This is your last chance to complete the survey and help guide the evolution of ACF. https://t.co/0cgr9ZFOJ5
— Advanced Custom Fields (@wp_acf) May 18, 2023
© 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.