The Google reCAPTCHA plugin is used to protect your site from hackers. It filters out spam entries during the event submission and registration process through codes.
Installing The Plugin
The installation process is the same for all the add-ons offered by WP Event Manager. They can be installed both automatically and manually.
- Automatic Installation: You can install the plugin from the backend of your WordPress. Click here to see how you can install the plugin automatically.
- Manual Installation: You can also install the plugin manually using SFTP or FTP tools. Click here to see how you can install the plugin automatically.
Watch the entire video for better understanding
Registration for getting reCAPTCHA keys
- Enter the required details of your website.
- After submission, you will get a reCAPTCHA site key and a secret key.
- Copy these keys.
- Follow the path mentioned below in the backend: WP-admin >> Event Manager >> Settings >> Google reCAPTCHA.
- Paste the keys in the respective boxes.
- Save changes.
Now, you will receive the reCAPTCHA code on the event submission form, as shown in the screenshot.
If a user does not enter the reCAPTCHA code, they will be asked to verify it with the following message.
Google reCAPTCHA Settings
- Go to wp-admin>>Events Manager>>Settings.
- Click on the Google reCAPTCHA tab.
- Here are the options you will get in the settings section:
- Enable Google reCAPTCHA: Tick the option if you want Google reCAPTCHA on your website, and leave it blank if you don’t.
- reCAPTCHA type: Select the reCAPTCHA type from the given options that include ReCAPTCHA V2 and ReCAPTCHA V3.
- ReCAPTCHA V2: It helps administrators verify if the user has solved the challenge correctly.
- ReCAPTCHA V3: It helps administrators decide which action needs to be taken based on users’ scores.
- Select reCAPTCHA v2: reCAPTCHA v2 asks users to confirm that they're human.
- "I'm not a robot" checkbox.
- Invisible reCAPTCHA (only shows a challenge if suspicious activity is detected).
- Select reCAPTCHA v3: reCAPTCHA v3 works in the background without interrupting users. Instead of asking visitors to solve a challenge, it gives each interaction a risk score. Based on the score, your website decides what to do next.
- RECAPTCHA_SITE_KEY: Paste your v2 or v3 reCAPTCHA site key here in the box.
- RECAPTCHA_SECRET_KEY: Paste your v2 or v3 reCAPTCHA secret key here in the box.
- Enable reCAPTCHA for Submit Event Form: Tick the option to enable Google reCAPTCHA on your event submission form, or keep it blank to disable.
- Enable reCAPTCHA for Submit Organizer Form: Tick the option to enable Google reCAPTCHA on your submit organizer form, or keep it blank to disable.
- Enable reCAPTCHA for Submit Venue Form: Tick the option to enable Google reCAPTCHA on your Submit Venue form, or keep it blank to disable.
- Enable reCAPTCHA for Alert Form: Tick the option to enable Google reCAPTCHA on your Alert form, or keep it blank to disable. This option is applicable only if you have the Event Alert Plugin.
- Enable reCAPTCHA for Bookmarks Form: Tick the option to enable Google reCAPTCHA on your Bookmarks form, or keep it blank to disable. This option is applicable only if you have the Bookmarks plugin.
- Enable reCAPTCHA for Submit Contact Organizer Form: Tick the option to enable Google reCAPTCHA on your submit contact organizer form, or keep it blank to disable. This option is applicable only if you have the Contact Organizer form.
- Enable reCAPTCHA for Submit Registration Form: Tick the option to enable Google reCAPTCHA on your submit registration form, or keep it blank to disable. This option is applicable only if you have the Registration plugin.
- Enable reCAPTCHA for Submit Zoom Meeting / Webinar Form: Tick the option to enable Google reCAPTCHA on your submit Zoom meeting or webinar form. You can keep it blank to disable the option. This option is applicable only if you have the Zoom plugin.
- Enable reCAPTCHA for Submit Group Form: Tick the option to enable Google reCAPTCHA on your submit group form, or keep it blank to disable. This option is applicable only if you have the Guest List plugin.
- Enable reCAPTCHA for Submit Guest List Form: Tick the option to enable Google reCAPTCHA on your submit guest list form, or keep it blank to disable. This option is applicable only if you have the Guest List plugin.
- Save changes.
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, follow the steps below:
- Create the directory “wp-event-manager-google-recaptcha” under your theme folder.
- Copy the template file to the “/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/).
- The event-google-recaptcha.php template file lists the user’s alerts.
Remember: If you purchase and activate the registration add-on, you will be able to get reCAPTCHA for your registration form. Similarly, activating the guest list add-on will help you add reCAPTCHA to your add guest section.