Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of how to skip the Advanced noCaptcha & invisible Captcha plugin from validating the recaptcha response on the EE login step as it is not included in the request and will always fail.
<?php // Please do not include the opening PHP tag if you alread have one.
add_filter( 'anr_verify_captcha_pre', 'tw_ee_skip_recaptcha_verify_for_ee_login', 10, 2);
function tw_ee_skip_recaptcha_verify_for_ee_login($captcha_pre, $response) {
if( EE_Registry::instance()->REQ->get('step', '') === 'wpuser_login' ) {
return true;
}
return $captcha_pre;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.