Support » Plugin: Contact Form 7 »

  • Resolved cgreen177


    I’m having trouble changing recaptcha to use – which I would like to do from a GDPR point of view to stop tracking cookies.

    I’ve created a dummy contact form to test this but no joy …

    I (think I) have followed the instructions here but I cannot get the recaptcha endpoint to change:

    I’ve added the following code snippet:

    function test_recaptcha() {
    add_filter( 'wpcf7_use_recaptcha_net', '__return_true' );
    	echo 'filter addded';
    add_action('wp_head', 'test_recaptcha');

    I can see the filter is being added via the echo, but the endpoints remain as ones. I must be missing something obvious but I cannot work out what …

    Any help appreciated!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi


    FAQ > Can I use “”?

    Just do what it says.

    I would like to add that has nothing to do with GDPR.

    Thread Starter cgreen177


    True re GDPR but at least I can argue that the GRECAPTCHA cookie is necessary and I am not adding tracking cookies to the site, like I would by using the endpoint. So for me it makes me more GDPR compliant, which is why I would like to use it.

    Weird … I’ve just retested and it is working fine. I suspect a cloudflare caching issue perhaps? Thank you!

    Edit: I’m seeing inconsistent results. I’ve just purged the cloudlfare cache and do not have any other caching on the site. I did see it working correctly once.

    The request URL is back to being this:

    Request URL:

    The code I’ve added was a copy and paste from the FAQ wrapped in a function to add it to wp_head. So it should be working … and like I say, the echo is showing on the page, suggesting the code is running

    • This reply was modified 7 months, 1 week ago by cgreen177. Reason: inconsistent behaviour in endpoint url
    • This reply was modified 7 months, 1 week ago by cgreen177.
    Thread Starter cgreen177


    Edit: managing to get some consistent results now by not wrapping it in the function (at least on one site. It’s still not working on another but I am assuming that is a Cloudflare issue until I can prove otherwise)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘’ is closed to new replies.