• Resolved thriftynick

    (@thriftynick)


    Using the shortcode for arbitrary forms: The example says to not pass any args to hcaptcha_request_verify on the backend. That throws a fatal error. Passing in $_POST[‘h-captcha-response’] to that function returns NULL rather than the string “success” on success like the documentation states. I had to look at the function definition in your source code to figure out what was going wrong. The parameter is not optional and the comments state that it should return NULL on success. Please update your documentation! Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Contributor kaggdesign

    (@kaggdesign)

    Thank you for the report.

    I have updated the readme.txt. It will be published in the next release. The code you should use is the following

    
    $result = hcaptcha_verify_post();
    
    if ( null !== $result ) {
    // Block processing of the form.
    }
    
Viewing 1 replies (of 1 total)

The topic ‘docs need update on hcaptcha_request_verify($hcaptcha_response) function’ is closed to new replies.