That’s all I need “Add Google reCAPTCHA to WooCommerce Signup Form”. There are ton of plugins out there can satisfy this simple requirement. However they have more than what I need. So I googled the minimum requirement to reach the goal and try it out. Let’s check below and share if you find it helpful.
Get Google reCAPTCHA Keys
Basically you need
- Site Key
- Secret Key
You can get the keys as well as learn more about Google reCAPTCHA at https://www.google.com/recaptcha/intro/index.html
Make it happens
Simply put below script into your WordPress theme’s functions.php
Final thoughts
You can replace woocommerce_register_form by register_form and woocommerce_register_post by register_post if you don’t use WooCommerce. Further customization can be found as below
- WooCommerce Registration Custom Fields
- Notify Admin On WooCommerce User Registration
- Remove WooCommerce Password Strength Meter
There are many reasons for using WooCommerce and here are mine: E-Commerce readiness, prevent user from accessing backend.