プログラミング

WordPress Contact Form 7でreCAPTCHA (v3) が動作しない問題

WordPress Contact Form 7でreCAPTCHA (v3) が動作しない問題について解決策などについて紹介します。

reCAPTCHAの導入方法(参考にならない)
reCAPTCHA (v3) | Contact Form 7

割と長い議論
Google ReCaptcha v3 & Contact Form 7 – Not Working – Inundated with Spam | WordPress.org

I experienced the same.

I had left the [recaptcha] tag in place but have since removed it.

On this page, it says, “If [recaptcha] form-tags are found in a form template, Contact Form 7 5.1 or higher ignores them and replaces them with an empty > string.”.

I don’t know what this means but I wonder if leaving it in place renders it useless.

全くそのとおりである。ただ認証を実装するだけでここまで手間取らされるとは。

やり方

reCAPTCHAからreCAPTCHAを新規登録する

バージョンはv2。

Contact Form 7 – reCaptcha v2 – WordPress plugin | WordPress.orgをインストール。

Contact Form 7 v5.1 dropped support for reCaptcha v2 along with the [recaptcha] tag December 2018. This plugin brings that functionality back from Contact Form > 7 5.0.5 and re-adds the [recaptcha] tag.

If this plugin is installed before updating Contact Form 7 from v5.0.5 to v5.1.1 then it will carry over your old API keys. At that point you will just need to > head to this plugins settings page to tell the website to use reCaptcha v2.

Once installed and configured it should be the same reCaptcha functionality you are used to in previous versions of Contact Form 7.

wp plugin install wpcf7-recaptcha
wp plugin activate wpcf7-recaptcha

reCaptcha Version ‹ yuipro — WordPressv2で送信。

フォームテンプレートに[recaptcha]を挿入して、動作検証。

以上です。面倒すぎる。

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です