- Mar 22, 2013
- 9,145
- 10,489
You have to put that function in the file
This code is already here https://github.com/bozdoz/wp-plugin-recaptcha-jetpack/blob/master/recaptcha-jetpack.php#L143-L190
You don't have to add it. You know I'm not a WP fan. The IP part is missing, maybe that's causing the issue?
ChangePHP:$querystring = sprintf('secret=%s&response=%s', $secret_key, $recaptcha_reponse);
withPHP:$querystring = sprintf('secret=%s&response=%s&remoteip=%s', $secret_key, $recaptcha_reponse, $_SERVER['REMOTE_ADDR']);
Hey bro,
What file? I can't put it in the same file where my captcha code is located, that won't work.
Regarding the Github plugin, I use that one for my Contact Form. Not sure if it can also be used for he captcha on the registration popup. How all this works and how it all connects is so beyond me.
But I tried it. I put the code above back in functions.php, and I did the edit you said in the plugin's php file. I saved, I deleted cache, I did a hard refresh, and I was still able to register without solving the captcha.
Yeah, this is hard stuff. It's not one of those things where I can try and try and try some more and get lucky. I did try, but fail.