Google Recaptcha

Google Recaptcha

To prevent a spam, you can use captcha. Google ReCaptcha is a good option. It is free and pertinent while submission.This tutorial will show you how to use it for the event submission form.

 

Installation

You can install this plugin same way as installing the WP Event Manager so please refer installation guide of the WP Event Manager or refer to this Installing Plugins Guide.

 

Google Recaptcha Form

First of all you need to register on reCaptcha website. For that you have to name your site and have to enter the URL:

 

Google Recaptcha Form

 

That will provide a RECAPTCHA_SITE_KEY and RECAPTCHA_SECRET_KEY key. You will be using it later plugin.

 

Google Recaptcha Form

 

You can see this captcha after the orgnizer fields section, near the preview button.

 

Google Recaptcha Form

 

Google Recaptcha Form

 

Advanced: Overriding/Customizing the templates

For overriding or customization template files can be found in the wp-event-manager-google-recaptcha/templates/ directory. To override a template file, first you need to create directory “wp-event-manager-google-recaptcha” under your theme folder and copy the template file to “/wp-content/yourtheme/wp-event-manager-google-recaptcha/” directory. Your theme will use all the template files from the “/wp-content/yourtheme/wp-event-manager-google-recaptcha/” directory instead of the plugin’s template file (/wp-content/plugins/wp-event-manager-google-recaptcha/).

  • event-google-recaptcha.php template file lists the user’s alerts.

Remember: if you have overrided template file and plugin frequently updating then you need to sync template file with new updates from the plugin’s template file for better functionality and new features.