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.
 
Installation
You can install Google reCAPTCHA plugin using 2 different ways:
 
[1] Automatic Installation : You can install plugin from backend of your WordPress. Click Here to see how you can do automatic installation.
 
[2] Manual Installation : You can install plugin manually using SFTP or FTP tool as well. Click Here to see how you can do manual installation.
 
Watch this video for more clarification.
 
How To Get Google reCAPTCHA On Submission Form?
First of all, you need to register on reCAPTCHA website to get reCAPTCHA keys. For that, you have to name your site and enter the domain.
 
Google Recaptcha Form
 
Once you get reCAPTCHA keys, go to theme backend at WP-admin >> Event Listings >> Settings >> Google Recaptcha and here, you will get fields of “RECAPTCHA_SITE_KEY” and “RECAPTCHA_SECRET_KEY“. Enter the keys there and save changes.
 
Google Recaptcha Form
 
Now, you will get reCAPTCHA on the event submission form as you can see in below screenshot:
 
Google Recaptcha Form
 
If any user will not insert the reCAPTCHA, then it will ask for verifying the reCAPTCHA with this message:
 
Google Recaptcha Form
 
Customization: Overriding/Customizing The Template Files
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.