monsterinsights_lite_upgrade_from_yoast

The Google Analytics for WordPress by MonsterInsights monsterinsights lite upgrade from yoast function.

Description

monsterinsights_lite_upgrade_from_yoast( $key, $network ); 

Parameters (2)

0. $key
The key.
1. $network
The network.

Usage

  1. if ( !function_exists( 'monsterinsights_lite_upgrade_from_yoast' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/lite/includes/install.php'; 
  3.  
  4. // The key. 
  5. $key = null; 
  6.  
  7. // The network. 
  8. $network = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = monsterinsights_lite_upgrade_from_yoast($key, $network); 
  12.  

Defined (1)

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

/lite/includes/install.php  
  1. function monsterinsights_lite_upgrade_from_yoast( $key, $network ) { 
  2. if ( $network ) { 
  3. $option = array(); 
  4. $option['key'] = $key; 
  5. $option['type'] = ''; 
  6. $option['is_expired'] = false; 
  7. $option['is_disabled'] = false; 
  8. $option['is_invalid'] = false; 
  9. update_site_option( monsterinsights_license, $option ); 
  10. } else { 
  11. $option = array(); 
  12. $option['key'] = $key; 
  13. $option['type'] = ''; 
  14. $option['is_expired'] = false; 
  15. $option['is_disabled'] = false; 
  16. $option['is_invalid'] = false; 
  17. update_option( monsterinsights_license, $option );