MonsterInsights_Lite

The main function responsible for returning the one true MonsterInsights_Lite Instance to functions everywhere.

Description

(MonsterInsights_Lite) MonsterInsights_Lite(); 

Use this function like you would a global variable, except without needing to declare the global.

Example: $monsterinsights = MonsterInsights_Lite" title="MonsterInsights_Lite" class="code function">MonsterInsights_Lite(); ?>

Returns (MonsterInsights_Lite)

The singleton MonsterInsights_Lite instance.


Usage

  1. if ( !function_exists( 'MonsterInsights_Lite' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/googleanalytics.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = MonsterInsights_Lite(); 
  7.  

Defined (1)

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

/googleanalytics.php  
  1. function MonsterInsights_Lite() { 
  2. return MonsterInsights_Lite::get_instance();