'disable spam filter contact form 7

I have a contact form on a website I'm working on. We're using Contact Form 7 and I've run into a snag. They use the form to register campers and a single user might fill out a form 3 or 4 times with several pieces of information being identical to what was already uploaded.

The Spam filter frequently tags forms as Spam and my client wants me to disable the spam filter on this altogether.

How do I do this? I have deleted akismet, I'm using Re-Captcha as a system to verify people and it still blocks forms as spam.

Any help would be appreciated.



Solution 1:[1]

I faced the same issue while developing. To solve it I added the code below to the functions.php file in the theme directory:

    add_filter('wpcf7_spam', function() { return false; });

wpcf7_spam - Form 7 hook which allows you to change spam check result. Probably it's not a good idea to leave this code on production:)

Solution 2:[2]

The WordPress default CONFIG -> DISCUSSION is applying the disallowed words list to the CF7 forms.

To fix this try adding this code snippet to your theme functions.php file:

/**
 * CONTACT FORM 7
 * Disable WP Disallowed List for SPAM validation
 */
add_filter( 'wpcf7_submission_has_disallowed_words', '__return_false', 10, 2 );

It worked for me.

Solution 3:[3]

There is no filter on Contact Form 7. May be, you are using external plugin for spam control like Honeypot or your hosting/server making it spam. Possibility is, your hosting/server marks the email as spam. So disable any spam filter of your hosting or contact with your hosting admin.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Sarah
Solution 3 IqbalBary