Custom validation is not working in Contact Form 7 in ver 4.1.1
问题 I have to make a form with custom validation field in contact form 7. It is not working with latest version (4.1.1) of Contact Form 7 but working in older version. I have created a field for getting coupon code from the form. I want to validate the entry if the coupon is started from "HIP". My code is given below: add_filter( 'wpcf7_validate_text', 'your_validation_filter_func', 999, 2 ); add_filter( 'wpcf7_validate_text*', 'your_validation_filter_func', 999, 2 ); function your_validation