can spam goes through if spammers make _wpcf7 == "" <- means post empty value for this?
Opened this issue · 0 comments
ouvaa commented
can spam goes through if spammers make _wpcf7 == "" <- means post empty value for this?
// Validate form submission
add_filter('wpcf7_validate', 'cfturnstile_cf7_verify_recaptcha', 20, 2);
function cfturnstile_cf7_verify_recaptcha($result) {
if (!class_exists('WPCF7_Submission')) {
return $result;
}
$post = WPCF7_Submission::get_instance();
$_wpcf7 = !empty($_POST['_wpcf7']) ? absint($_POST['_wpcf7']) : 0;
if (!empty($post)) {