Wordpress invalidate cf7 after api call
问题 Here's my issue, I have contact form 7 for wordpress installed and during the wpcf7_before_send_mail I make a call to an API, I need to invalidate the form if the API returns an error then I need to invalidate the request and return the error passed back from the API call. I set a flag to false on API failure and the error message is also stored but my form is going through as success despite the failure I induce. add_action("wpcf7_before_send_mail", "wpcf7_send_contact_builder"); function