Solution for Woocommerce registration form
-
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
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Solution for Woocommerce registration form’ is closed to new replies.