• I’m not sure if this plugin will be updated in the future, but if it is, please consider adding this simple change in invisible-recaptcha.php:

    
    if (!defined('INVISIBLE_RECAPTCHA_DISABLED')) {
    	(!defined('ABSPATH')) || InvisibleReCaptcha::init();
    }
    

    I need it because I’m using WP-Browser/Codeception to do automated acceptance testing on the site, and the simulated browser obviously fails the captcha tests, so I want to just disable the plugin whenever the tests are running and a constant would be by far the easiest way to do that.

    I tried one of the alternatives, which is to disable the setup init hook, but the way you’re using static methods really makes that hard, and anyway, the constant is by far the most standard WP solution for things like this.

    I’m sure there’s other reasons people would need it (e.g. just not wanting it on their local install).

    Thanks for considering!

  • The topic ‘Easy patch: Add INVISIBLE_RECAPTCHA_DISABLED constant for wp-config’ is closed to new replies.