[Plugin: Contact Form 7] Hook for additional form validation?
-
I want to extend form validation. For example, since my plugin is storing form submissions to the DB, I would like to create a validation that checks if there has already been a submission with the same email or physical address. If it is an error, I would like to feed that back into CF7 error validation/error reporting mechanism.
Looking at the code, classes.php validate() function, I see it looks for and applies filters
'wpcf7_validate_' . $fe['type']
associated with each type of form element which it gets by scanning the shortcode. But I’m looking to hook in a validation specific to a form but not necessarily specific to one field (I may want to check several fields together).Can you give me some advise on how I might accomplish this?
Thanks very much.
- The topic ‘[Plugin: Contact Form 7] Hook for additional form validation?’ is closed to new replies.