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!
© 2022 Advanced Custom Fields.