Skip to content

Commit

Permalink
Fix. Integration. Forminator integration fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomberg committed Nov 28, 2023
1 parent 69a5d35 commit ac3112d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions inc/cleantalk-public-validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit ac3112d

Please sign in to comment.