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.
First of all you need to register on reCaptcha website. For that you have to name your site and have to enter the URL:
That will provide a RECAPTCHA_SITE_KEY and RECAPTCHA_SECRET_KEY key. You will be using it later plugin.
You can see this captcha after the orgnizer fields section, near the preview button.
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.