wpcf7_acceptance хук-фильтрCF7 1.0

Returns true if user consent is obtained.

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

add_filter( 'wpcf7_acceptance', 'wp_kama_wpcf7_acceptance_filter', 10, 2 );

/**
 * Function for `wpcf7_acceptance` filter-hook.
 * 
 * @param  $true 
 * @param  $that 
 *
 * @return 
 */
function wp_kama_wpcf7_acceptance_filter( $true, $that ){

	// filter...
	return $true;
}
$true
-
$that
-

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

WPCF7_Submission::accepted()
wpcf7_acceptance
contact-form-7/includes/submission.php 652
return apply_filters( 'wpcf7_acceptance', true, $this );

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

contact-form-7/modules/acceptance.php 139
add_filter( 'wpcf7_acceptance', 'wpcf7_acceptance_filter', 10, 2 );