reCAPTCHA for WooCommerce source code

By Elliot Sowersby / RelyWP, on WordPress.org since 2022. 40,000+ active installs.

Browse code Download zip

Easily add Google reCAPTCHA to WooCommerce checkout and forms to help prevent spam. Below is its source code for every one of its 27 releases, what changed in the latest one, and how often it ships.

What changed in 1.5.0

Released Nov 9, 2026, 3 months after 1.4.7
  • New: Added “WooCommerce Pay for Order Page” option to protect the Pay-for-Order page with reCAPTCHA.
  • New: Added a “Before Submit Button” position option for reCAPTCHA on WooCommerce checkout page.
  • New: Added “Only on wp-login.php” sub-options for the WordPress Login and Register integrations, so the reCAPTCHA only loads on the wp-login.php page.
  • New: Added a “Custom Failed Verification Message” option to override the default error text shown to users.
  • New: Added whitelist options to skip the reCAPTCHA check for logged-in users, specific IP addresses, and specific User-Agent substrings.
  • New: Added support for defining the reCAPTCHA site and secret keys via RECAPTCHA_WOO_SITE_KEY and RECAPTCHA_WOO_SECRET_KEY constants in wp-config.php (overrides the saved options).

8 files changed since 1.4.7: 5 modified, 3 added, 0 removed.

Compare 1.4.7 with 1.5.0

Release history

27 releases since October 2022
  1. 1.5.0 Nov 9, 2026 New: Added “WooCommerce Pay for Order Page” option to protect the Pay-for-Order page with reCAPTCHA.
  2. 1.4.7 Jul 24, 2026 Fix: Fixed an issue with some express payment methods. These will now automatically skip the reCAPTCHA check preventing the error message from showing.
  3. 1.4.6 Nov 5, 2025 Tweak: Added skip for XMLRPC and REST API on WooCommerce login and register check.
  4. 1.4.5 Aug 10, 2025 Fix: Fix “Incorrect call of JavaScript resource parameter” error.
  5. 1.4.4 Aug 10, 2025 Tweak: Changed some of the code on the admin settings page.
Full reCAPTCHA for WooCommerce changelog with diffs

Source of 1.5.0

8 files
Browse all reCAPTCHA for WooCommerce 1.5.0 files Browse trunk