Closed revoltek-daniel closed 2 years ago
It is already checking validation. Check contact form 7 complete source code and hooks.
but it does not respect other hooks, so if another hook in the before_sent_mail set validation to false or sets the aborted attribute to true, the values are written to database.
Before send hook call if your validation is successful. Please check contact form 7 source code.
On Wed, 8 Jun, 2022, 12:34 pm Daniel, @.***> wrote:
but it does not respect other hooks, so if another hook in the before_sent_mail set validation to false or sets the aborted attribute to true, the values are written to database.
— Reply to this email directly, view it on GitHub https://github.com/arshidkv12/contact-form-cfdb7/pull/31#issuecomment-1149541546, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABT5Y5OOVNKKFEDFB62V5WLVOBAXLANCNFSM5UB2OQSQ . You are receiving this because you modified the open/close state.Message ID: @.***>
write values only to database if validation status is not "validation_failed"