• Hi there.
    Recently i’ve installed this plugin, but it was being ignored in woocommerce registration form. The reCaptcha was there, but with no validation.
    Then, i came up with something that worked for me.

    //wp-recaptcha/recaptcha.PHP - line 73
    
    function register_filters() {
                // only register the hooks if the user wants recaptcha on the registration page
                if ($this->options['show_in_registration']) {
                    // recaptcha validation
                    if ($this->is_multi_blog())
                        add_filter('wpmu_validate_user_signup', array(&$this, 'validate_recaptcha_response_wpmu'));
                    else
                        add_filter('registration_errors', array(&$this, 'validate_recaptcha_response'));
    
                    //ADDED THIS LINE
                        add_filter('woocommerce_registration_errors', array(&$this, 'validate_recaptcha_response'));
                }
            }

    I’m not a php jedi, but you could check if this solution is ok and update the plugin!
    Thanks

    https://wordpress.org/plugins/wp-recaptcha/

Viewing 1 replies (of 1 total)
  • Hi @renan_santos,

    I have tried several plugins in past two months for Captcha validation in WooCommerce Registration form. This plugin was also one of them.

    And now adding that one line to the plugin has added the validation functionality. I hope I won’t have any more spam registrations on my WooCommerce website.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Solution for Woocommerce registration form’ is closed to new replies.