gglcptch_plugin_activate

The Google Captcha (reCAPTCHA) by BestWebSoft gglcptch plugin activate function.

Description

gglcptch_plugin_activate( $networkwide ); 

Parameters (1)

0. $networkwide
The networkwide.

Usage

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

Defined (1)

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

/google-captcha.php  
  1. function gglcptch_plugin_activate( $networkwide ) { 
  2. global $wpdb; 
  3. /** Activation function for network, check if it is a network activation - if so, run the activation function for each blog id */ 
  4. if ( is_multisite() ) { 
  5. switch_to_blog( 1 ); 
  6. register_uninstall_hook( __FILE__, 'gglcptch_delete_options' ); 
  7. restore_current_blog(); 
  8. } else { 
  9. register_uninstall_hook( __FILE__, 'gglcptch_delete_options' );