Please Note: If you aren’t already familiar with WordPress development, this code should go into either your custom theme‘s functions.php, your child theme‘s functions.php, or a plugin file. (Please Note: You will need to generate a new public/private key pair in the reCAPTCHA admin to use the invisible version, but the changes to the code is minimal.) I also made a note of one issue I ran into with the WP_Error. □ The one I referenced was integrating reCAPTCHA v.2, so I just made adjustments for the invisible version. I can’t find the original post I referenced (many of the ones out there use plugins or are using the old version of reCAPTCHA). I did grab a bit of this code from somewhere else, but made some adjustments. The code below is an example of how to add Google’s invisible reCAPTCHA to your WordPress login. If you’re looking to protect your WordPress site against brute force attacks, you can add features like a CAPTCHA or honeypot on your login page or enable 2-factor authentication. How to Integrate Google Invisible reCAPTCHA on WordPress Login
0 Comments
Leave a Reply. |