Site logo

Archived topic

Where to place a filter hook

1 reply · Started by Frans on January 20, 2022

Viewing posts 1–2 of 2

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

This archived topic is closed to new replies.