Site logo

[Support request] Where to place a filter hook

Home Forums Support [Support request] Where to place a filter hook

Home Forums Support Where to place a filter hook

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2087022
    Frans

    I’am using Contact Form 7 with Google recaptcha integration. I consider to change the recaptcha threshold: FAQ Contact Form 7 recaptcha

    This is the code:

    add_filter( 'wpcf7_recaptcha_threshold',
     
      function( $threshold ) {
        $threshold = 0.3; // decrease threshold to 0.3
     
        return $threshold;
      },
     
      10, 1
    );

    Where can I put this code ? Appearance>Elements>Hook: what location ?
    Or should I use put this code in the Code Snippets Plugin?

    Thanks !

    Frans

    #2087084
    David
    Staff
    Customer Support

    Hi there,

    You should use the Code Snippets plugin.

    More info on adding PHP Snippets here:

    https://docs.generatepress.com/article/adding-php/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.