Adding reCaptcha to the Email Sharing Button

How do I add reCaptcha to the Email button

The Email button is great, and you can make it even better by adding a Captcha to the submission form:

reCaptcha for Jetpack

To add the Captcha to your site, follow these steps:

  1. Start by registering on this site. Upon registration, you will receive a Public and a Private key.
  2. Open your site’s wp-config.php file in your favorite text editor, and add the following constants with both reCaptcha keys right before /* That's all, stop editing! Happy blogging. */:
    define( 'RECAPTCHA_PUBLIC_KEY', 'XXXXXXX' );
    define( 'RECAPTCHA_PRIVATE_KEY', 'XXXXXXX' );
    
  3. Voila! Your email sharing buttons are now protected against spammers!
This entry was posted in Code snippets, Tips & Tricks and tagged , , , . Bookmark the permalink.

One Response to Adding reCaptcha to the Email Sharing Button

  • Recent Comments

    Jakob Boman on Jetpack 4.6: Google Analytics…
    Jeremy on Jetpack 4.6: Google Analytics…
    Jeremy on Jetpack 4.6: Google Analytics…
    Girolamo Aloe on Jetpack 4.6: Google Analytics…
    eemskrant on Jetpack 4.6: Google Analytics…
  • Archives

  • Enter your email address to follow this blog and receive notifications of new posts by email.

  • Relied on by millions of WordPress professionals worldwide.

    Install Free   See Pricing

    Created by Automattic: bringing the power of WordPress.com to every WordPress site.

    %d bloggers like this: