Contributors: Seth Rubenstein Tags: block Tested up to: 6.4 Stable tag: 1.0.0 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html
Display a captcha form element, conditionally.
This captcha is powered by Cloudflare's Turnstile. It is a simple captcha that can be used to protect block applications from bots and spam.
It is conditionally displayed when it's parent and target namespace have a context.captchaHidden value of false, by default most applications will have this set to true.
Upon successful completion of the captcha, the challenge token will be returned back to the targetnamespace at context.captchaToken which you should further validate in your rest request. See \PRC\Platform\Mailchimp->verify_captcha() for an example of how to validate the captcha token.
op block in block application, set the targetnamespace attribute in the PRC Interactiity API panel. This will be the namespace of the parent block that will control the captcha visibility. It is incumbent upon the parent block to handle toggling the block on|off and further validation of the returned challenge token.
= A question that someone might have =
An answer to that question.
- This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif).
- This is the second screen shot
- You can store screenshots in a .docs folder in this block directory...
= 1.0.0 =
- Release