• Resolved scits

    (@scits)


    Hello there,

    I have a custom function which is called using the wpcf7_mail_sent hook. Within that function I should check whether the form submission has passed the recaptcha check. Is there any way I can access the Recaptcha result (pass or fail) from a custom function? I can access the g-recaptcha-response POST variable, however as you know I cannot check this a second time, since each token can only be checked once.

    Thanks a lot!

    Kind regards,
    Romeo

Viewing 1 replies (of 1 total)
  • Plugin Author IQComputing

    (@iqcomputing)

    Hello,

    Unfortunately, this plugin was built specifically to work with Contact Form 7 and not custom forms. We recommend digging into this plugin code and modify the hooks to get a better understanding of how it works.

    We use the wpcf7_spam filter hook for verification. You may be able to unhook our instance and hook in your own or hook in at a lower priority. Hopefully, you are able to use that code to find a solution to your problem!

Viewing 1 replies (of 1 total)
  • The topic ‘Check Recaptcha Result with PHP variable’ is closed to new replies.