Installing & activating
To add the Google reCAPTCHA extension to your site please do the following:
- Download the plugin zip folder from the WordPress plugins catalog
- Install the plugin by uploading it to your site by going to plugins > add new > upload plugin.
- On the upload plugin page click on the “choose file” button and select the Google reCAPTCHA zip folder from your computer.
- Once the file um-recaptcha.zip appears on the screen click the “install now” button to install the plugin.
- Wait until the “Plugin installed successfully” message appears.
- Click the “activate plugin” link to complete the activation.
Site & secret keys
After you have activated the plugin you will be redirected to the installed plugins page where you should see the following notice:
For the Google reCAPTCHA extension to work on your site you need to generate site and secret keys. If you already have the keys you can skip the next section. If you do not have your reCAPTCHA details already then click the “Generate your site and secret key” button where you will be taken to the official Google reCAPTCHA website.
Generating your site & secret key
To generate your site and secret keys please visit the Google reCAPTCHA site and click the button "v3 Admin Console". Log into your Google account if needed.
Click "Create" (+ icon) to create an application.
- Enter a label for this application e.g. your site name.
- Choose the type of reCAPTCHA. reCAPTCHA v3 is recommended for new applications.
- Enter your site's domain name.
Do not include httр:// or www prefix and make sure you do not have a forward slash / at the end.
- Add an additional owner if needed.
- Accept the reCAPTCHA Terms of Service.
- Click the Submit button.
Your application will be registered and you will be redirected to the overview page which contains keys. Copy your site key and secret key.
You may see these keys later in reCAPTCHA settings (under the gear icon) in the dropdown section "reCAPTCHA keys".
Once you have needed keys open your site WordPress dashboard and go to Ultimate Member > Settings > Extensions > Google reCAPTHA
The first option allows you to turn on/off the reCAPTCHA feature. Below this option is where you should enter your site key and secret key. Please note the reCAPTCHA will not show until you enter the keys. If you enter the wrong key(s) you will see an error appear on the forms where the reCAPTCHA should be.
Note: Update keys if you change the reCAPTCHA type. Keys that have been generated for the reCAPTCHA v2 don't work with the reCAPTCHA v3.
Once you have successfully entered the correct keys the reCAPTCHA will show on your registration and login forms. There are additional settings to turn on/off the reCAPTCHA feature on the UM Password Reset form and on default WordPress forms.
Turn on/off reCAPTCHA for certain form
The extension allows you to show/hide the reCAPTCHA from showing on a per form basis. This is useful if you decide that you want to show the reCAPTCHA on your registration form but not on your login form.
To show/hide the reCAPTCHA on a specific form you need to edit the desired form. Go to wp-admin > Ultimate Member > Forms, choose desired form and then click Edit.
Go to the Google reCAPTCHA widget, turn the feature on/off and update the form.
That is everything you need to successfully add the official Google reCAPTCHA to your site. If you have any questions about this extension please ask in the Google reCAPTCHA extension forum.