Jetpack reCaptcha plugin helps integrate Google reCaptcha in your JetPack contact forms.
This plugin opts to filter your content and search for
[contact-form] shortcode (i.e find the inserted contact forms) and append a new field to these forms, for parsing the Google reCaptcha
If you’re adding the contact form shortcode somewhere where the plugin cannot filter with
the_content filter, please either add the shortcode
[jp-recaptcha] where you want the reCaptcha field to be parsed, or better off, just point this plugin to filter your content with the following code:
// get the global instance of JPreCaptcha class global $JPreCaptchaCore; // if your content is pluggable with a filter add_filter('my_content_filter_tag_name', array($JPreCaptchaCore, 'appendField')); // or, if not, just call the method directly echo $JPreCaptchaCore::appendField( $myHTML );
Once you activate the plugin, you should now navigate to “Settings” > “JP reCaptcha” (or “Options” > “JP reCaptcha” for network activated plugin) and add your Google reCaptcha credentials (public and private keys) which you can obtain from https://www.google.com/recaptcha/admin
The development version of this plugin is hosted on Github, feel free to fork it, contribute and improve it, or start a new issue if you want to report something like an unusual bug.
Here’s the Github repo: https://github.com/elhardoum/jetpack-recaptcha