wpcf7_recaptcha_sitekey

The contact-form-7 wpcf7 recaptcha sitekey hook.

Published Date - July 22, 2023

Description

$sitekey = apply_filters( 'wpcf7_recaptcha_sitekey', $sitekey );

Parameters

  1. $sitekey


Usage

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)

Defined

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

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

$sitekey = apply_filters( 'wpcf7_recaptcha_sitekey', $sitekey );