Home › Forums › General Issues › acf/validate_value › Reply To: acf/validate_value
UP
I have exactly the same problem :
add_filter('acf/validate_value', 'My_validate_annonce', 10, 4 );
function My_validate_dates_annonce( $valid, $value, $field, $input ){
if( 1 )
return 'erreur !';
}
That do nothing…
It the same if I put this code :
add_filter('acf/validate_value/name=my_date_debut_annonce', 'My_validate_annonce', 10, 4 );
function My_validate_dates_annonce( $valid, $value, $field, $input ){
if( 1 )
return 'erreur !';
}
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.