wpcf7_remove_captcha

The Contact Form 7 wpcf7 remove captcha function.

Description

wpcf7_remove_captcha( $prefix ); 

Parameters (1)

0. $prefix
The prefix.

Usage

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

Defined (1)

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

/modules/really-simple-captcha.php  
  1. function wpcf7_remove_captcha( $prefix ) { 
  2. if ( ! $captcha = wpcf7_init_captcha() ) { 
  3. return false; 
  4.  
  5. if ( preg_match( '/[^0-9]/', $prefix ) ) // Contact Form 7 generates $prefix with wp_rand() 
  6. return false; 
  7.  
  8. $captcha->remove( $prefix );