gglcptch_lostpassword_check

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

Description

gglcptch_lostpassword_check( $allow ); 

Parameters (1)

0. $allow
The allow.

Usage

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

Defined (1)

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

/google-captcha.php  
  1. function gglcptch_lostpassword_check( $allow ) { 
  2.  
  3. $result = gglcptch_check(); 
  4.  
  5. if ( $result['response'] || $result['reason'] == 'ERROR_NO_KEYS' ) 
  6. return $allow; 
  7.  
  8. if ( ! is_wp_error( $allow ) ) 
  9. $allow = new WP_Error(); 
  10.  
  11. $error_message = sprintf( '<strong>%s</strong>: %s', __( 'Error', 'google-captcha' ), gglcptch_get_message() ); 
  12.  
  13. $allow->add( 'gglcptch_error', $error_message ); 
  14. return $allow;