Add support for hCaptcha

Since no one above mentioned all the steps on how to add hcaptcha, I will do it myself for future readers (even it is on a bad place - 11th post?).

Steps to activate hcaptcha on Wordpress + HivePress

After activating “Code Snippets” plugin, I go to Snippets > Add New > (PHP is selected by default)

Paste the code from that topic, starting “// Add hCaptcha to user register form”.

“Save and Activate” button.

Then add/activate plugin named “hCaptcha for WP”, and in its settings (General tab), select an option to apply configuration automatically (may not be necessary). Add hcaptcha sitekey, secret and “Check” button and then “Save” button on the bottom of the page. Also I have enabled some forms protection on the Integrations tab.

I can now see the registration form of HivePress having hCaptcha.


The registration form has small issues:

  1. fill just email and click register button, you have to solve captcha, then you have to fill the password, but the Register button can not be clicked. You have to click the captcha again (despite it has a green tickmark already) and solve it for the second time, then the registration automatically proceeds.

  2. submit empty reg. form, it asks captcha solving, then fill the form, you can not submit it (button is not clickable), until you click already solved (ticked) captcha again and solve it for the second time.

2 Likes