ReCaptcha v2 for Contact Form 7

描述

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.

IQComputing

螢幕截圖

  • Settings page

安裝

Contact Form 7 is required to work with this plugin.

  1. Install this (ReCaptcha v2 for Contact Form 7) plugin
  2. Update Contact Form 7 to the latest version
  3. Re-add the reCaptcha version 2 API keys (if no keys are currently set). For more information you may read How to Generate Google reCAPTCHA v2 Keys by IQComputing and Contact Form 7 documentation
  4. Using the left-hand admin navigation in the Contact Form 7 subpages click “reCaptcha Version” (Contact -> reCaptcha Version)
  5. Once on the “ReCaptcha v2 for Contact Form 7” settings page, select from the select list “reCaptcha Version 2” and click “save”

Once the version 2 API keys are set, the version 2 has been selected in the plugin settings, all [recaptcha] tags will be replaced with the expected Google reCaptcha on all forms.

常見問題

Will this plugin work with Version 3 keys?

No and yes. Google reCaptcha has specific keys for each API. If you are doing an upgrade from a previous version of Contact Form 7 to the current version you will need to re-add the Version 2 API keys using the traditional method. That being said you can set the plugin usage to default and it will use the inherit Contact Form 7 reCaptcha Version 3 API.

Where do I add my Version 2 keys?

Under Contact -> Integration you can see a “reCAPTCHA” service box where you may either “Setup Integration” following instructions from the Contact Form 7 documentation. If you already have keys set you will need to click the “Remove Keys” button and re-add them following the Contact Form 7 documentation.

I’ve added the Version 2 keys but nothing has changed

If you have added the Version 2 keys and you still do not see the reCaptcha show up on your forms please check the following:

  1. In WordPress admin, under Contact -> reCaptcha Version please ensure that you have “reCaptcha Version 2” selected and saved.
  2. On your contact forms please ensure that you have the [recaptcha] tag somewhere in the form.

Should the above be correct, at this point it’s time to open a support thread for us to look into the issue further.

評價

2021年4月30日
It was disappointing Contact Form 7 removing the support for the reCaptcha v2 completely. I was using an older version of the Contact Form 7 on several sites for being able to use reCaptcha v2, but the new security vulnerabilities made it impossible to use the older version anymore. I did not want to use reCaptcha v3 which loads on every page on the website unnecessarily and slows down the site. While I was finally considering moving from Contact Form 7 to other contact form plugins and was not happy with the reviews of the alternative options, I checked the documentation of Contact Form 7 as a last resort to find a solution, which suggested using this plugin if I insist on using reCaptcha v2. I am so glad that it did! This plugin gave me the option to use reCaptcha v2 with Contact Form 7 and saved me from migrating to another contact form plugin on all my sites. It worked perfectly! Thanks for developing this wonderful plugin! I am really grateful to you!
2021年3月10日
Recaptcha v2 is preferable for most websites so that: A floating Google logo (free advertising) doesn't appear on every page of your site Slightly better success blocking spam I don't know why Contact Form 7 removed this feature, but this plugin brings it back perfectly.
2021年1月16日
Go to Contact -> ReCaptcha Version and set Select reCaptcha Usage: V2 Go to Contact -> Integration -> ReCaptcha -> Add keys from google Add in contact form the ReCaptcha = [recaptcha]
2021年1月12日
Super! Easy to use, saves api keys, huge thanks to the developer 👍👍
閱讀全部78個評價

貢獻者及開發者

“ReCaptcha v2 for Contact Form 7” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

ReCaptcha v2 for Contact Form 7 外掛目前已有 15 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 ReCaptcha v2 for Contact Form 7 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.3.5 (2020-06-14)

  • Updated support for WordPress 5.8

1.3.4 (2020-06-14)

  • Updated the controls JS file to be encapsulated.
  • Added the reCaptcha error messages to the Contact Form 7 “Messages” screen so they may be changed.

1.3.3 (2020-03-01)

  • Updated reCaptcha HTML to be wrapped in span tag as Contact Form 7 expects.
  • Updated javascript to reflect HTML change above.