gglcptch_commentform_check

The Google Captcha (reCAPTCHA) by BestWebSoft gglcptch commentform check function.

Description

gglcptch_commentform_check(); 

Usage

  1. if ( !function_exists( 'gglcptch_commentform_check' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-captcha-recaptcha-by-bestwebsoft/google-captcha.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gglcptch_commentform_check(); 
  7.  

Defined (1)

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

/google-captcha.php  
  1. function gglcptch_commentform_check() { 
  2. return; 
  3.  
  4. $result = gglcptch_check(); 
  5.  
  6. if ( $result['response'] || $result['reason'] == 'ERROR_NO_KEYS' ) 
  7. return; 
  8.  
  9. wp_die( sprintf( '<strong>%s</strong>: %s %s', __( 'Error', 'google-captcha' ), gglcptch_get_message(), __( 'Click the BACK button on your browser, and try again.', 'google-captcha' ) ) );