gglcptch_add_styles

The Google Captcha (reCAPTCHA) by BestWebSoft gglcptch add styles function.

Description

gglcptch_add_styles(); 

Usage

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

Defined (1)

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

/google-captcha.php  
  1. function gglcptch_add_styles() { 
  2. global $gglcptch_plugin_info, $gglcptch_options; 
  3. wp_enqueue_style( 'gglcptch', plugins_url( 'css/gglcptch.css', __FILE__ ), array(), $gglcptch_plugin_info["Version"] ); 
  4.  
  5. if ( defined( 'BWS_ENQUEUE_ALL_SCRIPTS' ) && BWS_ENQUEUE_ALL_SCRIPTS ) { 
  6. if ( ! wp_script_is( 'gglcptch_api', 'registered' ) ) { 
  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. $deps = array(); 
  13.  
  14. wp_register_script( 'gglcptch_api', $api_url, $deps, $gglcptch_plugin_info["Version"], true ); 
  15. add_action( 'wp_footer', 'gglcptch_add_scripts' ); 
  16. if ( 
  17. '1' == $gglcptch_options['login_form'] || 
  18. '1' == $gglcptch_options['reset_pwd_form'] || 
  19. '1' == $gglcptch_options['registration_form']