wpcf7_check_captcha

The Contact Form 7 wpcf7 check captcha function.

Description

wpcf7_check_captcha( $prefix, $response ); 

Parameters (2)

0. $prefix
The prefix.
1. $response
The response.

Usage

  1. if ( !function_exists( 'wpcf7_check_captcha' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/modules/really-simple-captcha.php'; 
  3.  
  4. // The prefix. 
  5. $prefix = null; 
  6.  
  7. // The response. 
  8. $response = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = wpcf7_check_captcha($prefix, $response); 
  12.  

Defined (1)

The function is defined in the following location(s).

/modules/really-simple-captcha.php  
  1. function wpcf7_check_captcha( $prefix, $response ) { 
  2. if ( ! $captcha = wpcf7_init_captcha() ) { 
  3. return false; 
  4.  
  5. return $captcha->check( $prefix, $response );