wpcf7_recaptcha_secret

The contact-form-7 wpcf7 recaptcha secret hook.

Published Date - July 22, 2023

Description

$secret = apply_filters( 'wpcf7_recaptcha_secret', $secret );

Parameters

  1. $secret


Usage

The following example is for adding a hook callback.

// define the wpcf7_recaptcha_secret callback 
function custom_wpcf7_recaptcha_secret( $secret ){ 
   //custom code here
    return $secret
} 

//add the action 
add_filter('wpcf7_recaptcha_secret', 'custom_wpcf7_recaptcha_secret', 10, 1)

Defined

The filter is defined in the following location(s).

contact-form-7/modules/recaptcha/service.php

$secret = apply_filters( 'wpcf7_recaptcha_secret', $secret );