Thanks Paul!
I also added the login form pages:
function add_invisible_recaptcha_mepr_login($membership_ID) {
?>
<div class="mp-form-row mepr_invisible_recaptcha">
<?php do_action('google_invre_render_widget_action'); ?>
</div>
<?php
}
add_filter('mepr-login-form-before-submit', 'add_invisible_recaptcha_mepr_login');
function validate_invisible_recaptcha_mepr_login($errors) {
$is_valid = apply_filters('google_invre_is_valid_request_filter', true);
if(!$is_valid) {
$errors[] = "Failed Captcha";
}
return $errors;
}
add_filter('mepr-validate-login', 'validate_invisible_recaptcha_mepr_login');