diff --git a/inc/cleantalk-public-validate.php b/inc/cleantalk-public-validate.php index 57e5a9bd7..336f906b6 100644 --- a/inc/cleantalk-public-validate.php +++ b/inc/cleantalk-public-validate.php @@ -108,6 +108,17 @@ function ct_contact_form_validate() $post_info['comment_type'] = 'feedback_general_contact_form'; + /** + * Forminator special handler + */ + if ( isset($_POST['action']) && $_POST['action'] === 'forminator_submit_form_custom-forms' ) { + foreach ( $_POST as $key => $value ) { + if ( is_string($key) && strpos($key, 'email') !== false ) { + $_POST[$key] = sanitize_email($value); + } + } + } + /** * Filter for POST */