wpcf7_doi хук-событиеCF7 1.0

Использование

add_action( 'wpcf7_doi', 'wp_kama_wpcf7_doi_action', 10, 3 );

/**
 * Function for `wpcf7_doi` action-hook.
 * 
 * @param  $string 
 * @param  $array  
 * @param  &$token 
 *
 * @return void
 */
function wp_kama_wpcf7_doi_action( $string, $array, &$token ){

	// action...
}
$string
-
$array
-
&$token
-

Где вызывается хук

wpcf7_constant_contact_submit()
wpcf7_doi
wpcf7_sendinblue_submit()
wpcf7_doi
contact-form-7/modules/constant-contact/constant-contact.php 110-117
do_action_ref_array( 'wpcf7_doi', array(
	'wpcf7_constant_contact',
	array(
		'email_to' => $email,
		'properties' => $request_builder->to_array(),
	),
	&$token,
) );
contact-form-7/modules/sendinblue/sendinblue.php 141-148
do_action_ref_array( 'wpcf7_doi', array(
	'wpcf7_sendinblue',
	array(
		'email_to' => $attributes['EMAIL'],
		'properties' => $params,
	),
	&$token,
) );

Где используется хук в Contact Form 7

contact-form-7/modules/doi-helper.php 9
add_action( 'wpcf7_doi', 'wpcf7_doihelper_start_session', 10, 3 );