gglcptch_admin_footer

The Google Captcha (reCAPTCHA) by BestWebSoft gglcptch admin footer function.

Description

gglcptch_admin_footer(); 

Usage

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

Defined (1)

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

/google-captcha.php  
  1. function gglcptch_admin_footer() { 
  2. global $gglcptch_plugin_info; 
  3. if ( isset( $_REQUEST['page'] ) && 'google-captcha.php' == $_REQUEST['page'] ) { 
  4. /** for gglcptch test key */ 
  5. global $gglcptch_options; 
  6. $deps = array(); 
  7. if ( isset( $gglcptch_options['recaptcha_version'] ) && in_array( $gglcptch_options['recaptcha_version'], array( 'v2', 'invisible' ) ) ) { 
  8. $api_url = "https://www.google.com/recaptcha/api.js?onload=gglcptch_onload_callback&render=explicit"; 
  9. $deps = array( 'gglcptch_pre_api' ); 
  10. } else { 
  11. $api_url = "https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"; 
  12. wp_register_script( 'gglcptch_api', $api_url, $deps, $gglcptch_plugin_info['Version'], true );