Home Forums General Issues How to use acf/validate_value


How to use acf/validate_value

  • I’m a bit confused for how to use the validation function since the example is a bit different from what I want to use it for. Basically I want to check a field for the value that was entered before the post (front end form) was saved and depending on a condition redirect to another page. The $valid variable is confusing me though and I’m not sure how that would factor into this.

    Is there a more simple example for this hook?

  • Hi ahowell1,

    I think an easier hook for you to use would be acf/pre_save_post

    With it you can check for your field values using $_POST and do a wp_redirect based on the value.

    Good luck!

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to use acf/validate_value’ is closed to new replies.