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

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

add_action( 'wpcf7_submit', 'wp_kama_wpcf7_submit_action', 10, 2 );

/**
 * Function for `wpcf7_submit` action-hook.
 * 
 * @param  $that   
 * @param  $result 
 *
 * @return void
 */
function wp_kama_wpcf7_submit_action( $that, $result ){

	// action...
}
$that
-
$result
-

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

WPCF7_ContactForm::submit()
wpcf7_submit
contact-form-7/includes/contact-form.php 1076
do_action( 'wpcf7_submit', $this, $result );

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

contact-form-7/modules/constant-contact/constant-contact.php 31
add_action( 'wpcf7_submit', 'wpcf7_constant_contact_submit', 10, 2 );
contact-form-7/modules/flamingo.php 7
add_action( 'wpcf7_submit', 'wpcf7_flamingo_submit', 10, 2 );
contact-form-7/modules/sendinblue/sendinblue.php 27
add_action( 'wpcf7_submit', 'wpcf7_sendinblue_submit', 10, 2 );