Home › Forums › Bug Reports › ACF PRO: Possible bug in acf/save_post › Reply To: ACF PRO: Possible bug in acf/save_post
Haven’t hade the time to try it out until now.
Just to back up a bit: I’m trying to compare the new value of a field to its previous value. To be able to do this I need to know the field name/key, the previous value, and the new value. To get the previous value, I need to know the post ID of the post that’s being saved.
When trying out the acf/validate_value/name=[field_name]
action, I can’t get the post ID since the action only returns the following four arguments: $valid, $value, $field, $input.
So, @Elliot Condon, any way to get the post ID inside acf/validate_value/name=[field_name]?
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.