wp-content/plugins/contact-form-7-multi-step-module/cf7msm.php
/**
 * Skip sending the mail if this is a multi step form and not the last step.
 */
Skip sending the mail if this is a multi step form and not the last step.
Skip sending the mail if this is a multi step form and not the last step .
function cf7msm_skip_send_mail( $skip_mail, $wpcf7 )
{
    $step_string = parse_form_for_multistep( $wpcf7, true );
    if ( !empty($step_string) ) {
        $steps = explode( '-', $step_string );
        $curr_step = $steps[0];
        $last_step = $steps[1];
        if ( $curr_step != $last_step ) {
            $skip_mail = true;
        }
    }
    return $skip_mail;
}
function cf7msm_skip_send_mail ( $ skip_mail , $ wpcf7 ) { $ step_string = parse_form_for_multistep ( $ wpcf7 , true ) ; if ( ! empty ( $ step_string ) ) { $ steps = explode ( '-' , $ step_string ) ; $ curr_step = $ steps [ 0 ] ; $ last_step = $ steps [ 1 ] ; if ( $ curr_step != $ last_step ) { $ skip_mail = true ; } } return $ skip_mail ; }
Skip sending the mail if this is a multi step form and not the last step.
Skip sending the mail if this is a multi step form and not the last step .