http://www.radia.jp/contact-form-7-redirect-events/
https://kosgis.com/news/change-on_sent_ok-to-custom-dom-event/
on_sent_ok が廃止のため、functions.phpに書かなくちゃいけなくなる。
あーーーめんどくせええええええええええええ
<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
    location = 'https://ドメイン/thanks/';
}, false );
</script>
<div class="thanks_page">
<p>お問い合わせありがとうございました。<br />
 後ほど、担当者よりご連絡をさせていただきます。<br />
今しばらくお待ちくださいますようよろしくお願い申し上げます。</p>
</div>
.thanks_page{
 padding:150px 15px 200px 15px;
 text-align:center;
}
cf7のメール再確認のコードに_confilmをつける
emailだったらemail_confilm
 
// コンタクトフォームのメアド再入力
function wpcf7_main_validation_filter( $result, $tag ) {
  $type = $tag['type'];
  $name = $tag['name'];
  $_POST[$name] = trim( strtr( (string) $_POST[$name], "\n", " " ) );
  if ( 'email' == $type || 'email*' == $type ) {
    if (preg_match('/(.*)_confirm$/', $name, $matches)){
      $target_name = $matches[1];
      if ($_POST[$name] != $_POST[$target_name]) {
        if (method_exists($result, 'invalidate')) {
          $result->invalidate( $tag,"確認用のメールアドレスが一致していません");
      } else {
          $result['valid'] = false;
          $result['reason'][$name] = '確認用のメールアドレスが一致していません';
        }
      }
    }
  }
  return $result;
}
add_filter( 'wpcf7_validate_email', 'wpcf7_main_validation_filter', 11, 2 );
add_filter( 'wpcf7_validate_email*', 'wpcf7_main_validation_filter', 11, 2 );
 
http://securavita.net/contact-form-7-thankspage/
on_sent_ok: "location.href = 'https://***************/thanks';"