wpcf7_recaptcha_actions

The contact-form-7 wpcf7 recaptcha actions hook.

Published Date - July 22, 2023

Description

'actions' => apply_filters( 'wpcf7_recaptcha_actions', array(
				'homepage' => 'homepage',
				'contactform' => 'contactform',
			) ),

Parameters

  1. $array


Usage

The following example is for adding a hook callback.

// define the wpcf7_recaptcha_actions callback 
function custom_wpcf7_recaptcha_actions( $array ){ 
   //custom code here
    return $array
} 

//add the action 
add_filter('wpcf7_recaptcha_actions', 'custom_wpcf7_recaptcha_actions', 10, 1)

Defined

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

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

'actions' => apply_filters( 'wpcf7_recaptcha_actions', array(
				'homepage' => 'homepage',
				'contactform' => 'contactform',
			) ),