The contact-form-7 wpcf7 recaptcha sitekey hook.
Published Date - July 22, 2023
$sitekey = apply_filters( 'wpcf7_recaptcha_sitekey', $sitekey );
$sitekey
The following example is for adding a hook callback.
// define the wpcf7_recaptcha_sitekey callback
function custom_wpcf7_recaptcha_sitekey( $sitekey ){
//custom code here
return $sitekey
}
//add the action
add_filter('wpcf7_recaptcha_sitekey', 'custom_wpcf7_recaptcha_sitekey', 10, 1)
The filter is defined in the following location(s).
contact-form-7/modules/recaptcha/service.php
$sitekey = apply_filters( 'wpcf7_recaptcha_sitekey', $sitekey );