Support

Account

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]?