Title: docs need update on hcaptcha_request_verify($hcaptcha_response) function
Last modified: December 9, 2022

---

# docs need update on hcaptcha_request_verify($hcaptcha_response) function

 *  Resolved [thriftynick](https://wordpress.org/support/users/thriftynick/)
 * (@thriftynick)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/docs-need-update-on-hcaptcha_request_verifyhcaptcha_response-function/)
 * 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](https://wordpress.org/support/users/kaggdesign/)
 * (@kaggdesign)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/docs-need-update-on-hcaptcha_request_verifyhcaptcha_response-function/#post-16277476)
 * 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.

 * ![](https://ps.w.org/hcaptcha-for-forms-and-more/assets/icon.svg?rev=3026321)
 * [hCaptcha for WP](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/)
 * [Active Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/docs-need-update-on-hcaptcha_request_verifyhcaptcha_response-function/#post-16277476)
 * Status: resolved