The contact-form-7 wpcf7 recaptcha secret hook.
Published Date - July 22, 2023
$secret = apply_filters( 'wpcf7_recaptcha_secret', $secret );
$secret
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)
The filter is defined in the following location(s).
contact-form-7/modules/recaptcha/service.php
$secret = apply_filters( 'wpcf7_recaptcha_secret', $secret );