Viewing 6 replies - 1 through 6 (of 6 total)
  • function add_invisible_recaptcha_mepr_signup($membership_ID) {
      ?>
        <div class="mp-form-row mepr_invisible_recaptcha">
          <?php do_action('google_invre_render_widget_action'); ?>
        </div>
      <?php
    }
    add_filter('mepr-checkout-before-submit', 'add_invisible_recaptcha_mepr_signup');
    
    function validate_invisible_recaptcha_mepr_signup($errors) {
      $is_valid = apply_filters('google_invre_is_valid_request_filter', true);
      if(!$is_valid) {
        $errors[] = "Failed Captcha";
      }
      return $errors;
    }
    add_filter('mepr-validate-signup', 'validate_invisible_recaptcha_mepr_signup');

    Would love an update if this gets added to your core plugin. Thanks!
    https://www.memberpress.com/

    Thread Starter ForestD

    (@forestd)

    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');
    Plugin Author MihChe

    (@mihche)

    Hi,
    Glad to see you guys solved this so easily.

    Paul, I sent you an email regarding this integration.

    Cheers,
    Mihai

    Thanks @mihche – will you update me when this has been released so I can get it in our user manual?

    Hi @mihche – just wondering if you’ve had time to get this integrated yet?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘MemberPress Integration’ is closed to new replies.