Add reCAPTCHA to WordPress without plugins
To add Google reCAPTCHA to WordPress, first go to the Google reCAPTCHA dashboard and get your site key and secret key, then place them in the code below. Then paste the following code into the functions.php file of your child theme.