What is the right way of stopping CF7 from posting using wpcf7_before_send_mail
-
Hi,
When using the action wpcf7_before_send_mail, what is the correct way of telling CF7 to not post (or email) the form for whatever reason e.g. an API call failed.
I’ve tried so many ways but none seem to work. Assume that all fields validate so I don’t want to invalidate using wpcf7_validate. I would just like to stop cf7 and return to the form with an error message and field values still in place.
Cheers, Vic
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘What is the right way of stopping CF7 from posting using wpcf7_before_send_mail’ is closed to new replies.