WooCommerce 3.0 Registration Error [solved]
-
So even though the plugin author said he’s no longer updating this plugin:
https://github.com/mcguffin/wp-recaptcha-integrationI’ve still been using it on my woocommerce registration page to prevent bots from creating accounts. However, since updating to woocommerce 3.0, the reCAPTCHA no longer appears on the woocommerce registration form. (which you normally see when you go to http://example.com/my-account) however when someone tries to create an account, they still get the error that the reCAPTCHA box wasn’t checked, even though there’s no box.
The reCAPTCHA still works on the default wordpress registration page: http://example.com/wp-login.php?action=register and the hook “registration_form” that made the checkbox appear on that page also made it appear on the woocommerce page as well, but only prior to 3.0.
Go to the plugin folder /wp-recaptcha-integration/inc/, and edit the file “class-wp_recaptcha_woocommerce.php” You’ll see on line 61 that the comment talks about this:
“// displaying the captcha at hook ‘registration_form’ already done by core plugin”However now we know it no longer does this in woocommerce 3.0, so we I had to inject the code manually. So I added this code right below that comment:
add_action('woocommerce_register_form' , array($wp_recaptcha,'print_recaptcha_html'),10,0);
And that fixed this particular issue for me. I hope this helps someone.
- The topic ‘WooCommerce 3.0 Registration Error [solved]’ is closed to new replies.