gglcptch_get_default_options

The Google Captcha (reCAPTCHA) by BestWebSoft gglcptch get default options function.

Description

gglcptch_get_default_options(); 

Usage

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

Defined (1)

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

/google-captcha.php  
  1. function gglcptch_get_default_options() { 
  2. global $gglcptch_plugin_info; 
  3.  
  4. $default_options = array( 
  5. 'whitelist_message' => __( 'You are in the whitelist', 'google-captcha' ),  
  6. 'public_key' => '',  
  7. 'private_key' => '',  
  8. 'login_form' => '1',  
  9. 'registration_form' => '1',  
  10. 'reset_pwd_form' => '1',  
  11. 'comments_form' => '1',  
  12. 'contact_form' => '0',  
  13. 'theme' => 'red',  
  14. 'theme_v2' => 'light',  
  15. 'recaptcha_version' => 'v2',  
  16. 'plugin_option_version' => $gglcptch_plugin_info["Version"],  
  17. 'first_install' => strtotime( "now" ),  
  18. 'display_settings_notice' => 1,  
  19. 'suggest_feature_banner' => 1,  
  20. ); 
  21.  
  22. if ( function_exists( 'get_editable_roles' ) ) { 
  23. foreach ( get_editable_roles() as $role => $fields ) { 
  24. $default_options[ $role ] = '0'; 
  25. return $default_options;