monsterinsights_is_network_active

The Google Analytics for WordPress by MonsterInsights monsterinsights is network active function.

Description

monsterinsights_is_network_active(); 

Usage

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

Defined (1)

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

/includes/helpers.php  
  1. function monsterinsights_is_network_active() { 
  2. if ( ! function_exists( 'is_plugin_active_for_network' ) ) { 
  3. require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); 
  4.  
  5. if ( is_multisite() && is_plugin_active_for_network( plugin_basename( MONSTERINSIGHTS_PLUGIN_FILE ) ) ) { 
  6. return true; 
  7. } else { 
  8. return false;