Home › Forums › General Issues › validate_value filter doesn't work › Reply To: validate_value filter doesn't work
As far as your first question, yes, if that code is in functions.php no posts should be saved and all fields should show the error, if not then for some reason the filter is not being called, I don’t know of any reason why that would be the case with ACF activated and that code in your functions file.
In your second piece of code, there isn’t a hook acf/validate_save_post
, there is a acf/save_post
hook.
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.