Implementing plugins, services, or any other scripts can be done, in most cases, quite easily with our script center. Complianz will add integrations continuously, but if you don’t want to wait on Captcha for WordPress, you can start here! In this example, we’re using WP Forms, as this is the most popular form plugin where hCaptcha has a direct integration. The only thing left is to block hCaptcha and add a placeholder.
Why block hCaptcha?
Adding HTML & CSS to WP Forms
Let’s start with adding some HTML to your form plugin, in this case WP Forms. This will add the placeholder to enable this service or category and load hCaptcha if needed. In the free version of WP Forms you’re unable to use a HTML block in your form, but in Free you can also use the description block on every field to add HTML. We recommend using the last field before submit. For example:
For this field we must add some CSS so it looks better, but also to remove the hCaptcha DIV before consent. As hCaptcha HTML is loaded locally, while the challenge is blocked. If you don’t want a button, you can change ‘button’ to ‘div’ in both HTML and CSS.
Now you need to block hCaptcha. This is done quite easily with our script center;
If you want to pack everything in to a MU-plugin, you can do so by adding the below. This included blocking hCaptcha and adding CSS for the placeholder visibility. You will still need to add the placeholder yourself. We used the same classes as for WP Forms, you can change this if so desired.