gglcptch_test_keys

The Google Captcha (reCAPTCHA) by BestWebSoft gglcptch test keys function.

Description

gglcptch_test_keys(); 

Usage

  1. if ( !function_exists( 'gglcptch_test_keys' ) ) { 
  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_test_keys(); 
  7.  

Defined (1)

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

/google-captcha.php  
  1. function gglcptch_test_keys() { 
  2. global $gglcptch_ip_in_whitelist; 
  3. if ( isset( $_REQUEST['_wpnonce'] ) && wp_verify_nonce( $_REQUEST['_wpnonce'] , $_REQUEST['action'] ) ) { 
  4. header( 'Content-Type: text/html' ); ?> 
  5. <p><?php _e( 'Please, complete the captcha and submit "Test verification"', 'google-captcha' ); ?></p> 
  6. <?php $gglcptch_ip_in_whitelist = false; 
  7. echo gglcptch_display(); ?> 
  8. <p> 
  9. <input type="hidden" name="gglcptch_test_keys_verification-nonce" value="<?php echo wp_create_nonce( 'gglcptch_test_keys_verification' ); ?>" /> 
  10. <button id="gglcptch_test_keys_verification" name="action" class="button-primary" value="gglcptch_test_keys_verification"><?php _e( 'Test verification', 'google-captcha' ); ?></button> 
  11. </p> 
  12. <?php } 
  13. die();