I’ve checked the Plugin code and there is no filter or function to returning the captcha word.
How can i resolve this?
Hello @uranbold,
It’s interesting what you want to achieve, however, I haven’t seen any existing extension plugin to add speech captchas for CF7.
On the other hand, I think it’s not a good idea to show the captcha in plain text directly in the code, this would make it easier for spam robots to detect the right answer to the challenge and send messages from your forms.
However, you can create an instance of the Really Simply Captcha (ReallySimpleCaptcha()) class and use one of its methods (generate_random_word()) to generate and return the CAPTCHA word before generating the image captcha:
// Create an instance of ReallySimpleCaptcha class
$captcha_instance = new ReallySimpleCaptcha();
// Generate a random word for CAPTCHA
$word = $captcha_instance->generate_random_word();
// Return the word for CAPTCHA
return $word;
Hope this helps you.
Best regards,
Yordan.
Hello,
Yeah i’ve tried it and it actually displayed 2 different captcha 🙂
I understand that comes with spam issues. Still not figure it out.
Thanks.
Hello @uranbold,
In order for it to display a single captcha you have to use the same instance and work with the $word result in both captchas. That is, you have to include the text and image captchas in the same code you are working with (I recommend to you working with a custom form tag for CF7). Please read Adding a custom form-tag to learn more.
Best regards,
Yordan.