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

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

add_filter( 'wpcf7_feedback_response', 'wp_kama_wpcf7_feedback_response_filter', 10, 2 );

/**
 * Function for `wpcf7_feedback_response` filter-hook.
 * 
 * @param  $response 
 * @param  $result   
 *
 * @return 
 */
function wp_kama_wpcf7_feedback_response_filter( $response, $result ){

	// filter...
	return $response;
}
$response
-
$result
-

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

WPCF7_REST_Controller::create_feedback()
wpcf7_feedback_response
contact-form-7/includes/rest-api.php 396
$response = apply_filters( 'wpcf7_feedback_response', $response, $result );

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

contact-form-7/modules/quiz.php 124
add_filter( 'wpcf7_feedback_response', 'wpcf7_quiz_ajax_refill', 10, 1 );
contact-form-7/modules/really-simple-captcha.php 190
add_filter( 'wpcf7_feedback_response', 'wpcf7_captcha_ajax_refill', 10, 1 );