recaptcha-for-wp
Invisible reCAPTCHA integration for the WordPress login., (*1)
Requirements
WordPress 4.7 or later, PHP 5.4 or later and Composer., (*2)
Installation
$ composer require ssnepenthe/recaptcha-for-wp
OR, (*3)
$ cd /path/to/project/wp-content/plugins
$ git clone git@github.com:ssnepenthe/recaptcha-for-wp.git
$ cd recaptcha-for-wp
$ composer install
Usage
To use this plugin you must provide API keys from reCAPTCHA., (*4)
First sign up for reCAPTCHA, register your site for Invisible reCAPTCHA and get your keys., (*5)
Then activate the plugin and provide your keys under settings > reCAPTCHA
., (*6)
That's it! Invisible reCAPTCHA is automatically enabled for the login, lost password and registration forms., (*7)
Configuration
Plugin settings can be overridden via the following constants:, (*8)
RFW_LOGIN
: whether to integrate reCAPTCHA with the login form. Must be a string, "1" (for enabled) or "0" (for disabled)., (*9)
RFW_LOSTPASSWORD
: whether to integrate reCAPTCHA with the lost password form. Must be a string, "1" (for enabled) or "0" (for disabled)., (*10)
RFW_REGISTRATION
: whether to integrate reCAPTCHA with the registration form. Must be a string, "1" (for enabled) or "0" (for disabled)., (*11)
RFW_SECRET_KEY
: the "secret" API key provided by reCAPTCHA. Must be a string., (*12)
RFW_SITE_KEY
: the "site" API key provided by reCAPTCHA. Must be a string., (*13)
Considerations
If you have any browser extensions installed for privacy (such as Privacy Badger) you may want to whitelist your domain., (*14)
If you enter either of your API keys incorrectly, it is possible to get locked out of your site. You should be able to work around this by setting the corresponding constant., (*15)
Compatibility
The plugin is tested with the Google Authenticator plugin and the GA Per-User Prompt plugin., (*16)
It should work, but is not tested with any other plugins that modify wp-login.php
., (*17)