The contact-form-7 wpcf7 submission result hook.
Published Date - July 22, 2023
$result = apply_filters( 'wpcf7_submission_result', $result, $this );
$result
$instance
The following example is for adding a hook callback.
// define the wpcf7_submission_result callback
function custom_wpcf7_submission_result( $result, $instance ){
//custom code here
return $result
}
//add the action
add_filter('wpcf7_submission_result', 'custom_wpcf7_submission_result', 10, 2)
The filter is defined in the following location(s).
contact-form-7/includes/submission.php
$result = apply_filters( 'wpcf7_submission_result', $result, $this );