• joshclicky

    (@joshclicky)


    I am trying to setup my site to allow specific IP addresses (Ghost Inspector Automated Testing Tool) to by-pass reCAPTCHA integration on my CF7 forms.

    I am using the wpcf7_skip_spam_check filter to do this, and when I submit the form from a specified IP address I receive an email notification with the details of the test enquiry, however, on the front-end the form just hangs, showing the ‘ajax-loading’ icon next to by submit button, and doesn’t proceed to my thank you page/show a success message.

    Here is the code I’ve added at the bottom of my functions.php file:

    $ip_addresses = array('52.56.51.140', '52.56.60.61');
    if ( in_array($_SERVER['REMOTE_ADDR'], $ip_addresses) ) {
    	apply_filters( 'wpcf7_skip_spam_check', '__return_true');
    	echo '<script>console.log("Ghost Inspector IP");</script>';
    }

    Is there something I need to add in addition to this filter to get it to continue the submission journey?

    • This topic was modified 3 years ago by joshclicky.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Form not submitting when using spam check filter’ is closed to new replies.