monsterinsights_is_debug_mode

The Google Analytics for WordPress by MonsterInsights monsterinsights is debug mode function.

Description

monsterinsights_is_debug_mode(); 

Usage

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

Defined (1)

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

/includes/helpers.php  
  1. function monsterinsights_is_debug_mode() { 
  2. $debug_mode = false; 
  3. if ( defined( 'MONSTERINSIGHTS_DEBUG_MODE' ) && MONSTERINSIGHTS_DEBUG_MODE ) { 
  4. $debug_mode = true; 
  5.  
  6. if ( monsterinsights_get_option( 'debug_mode', false ) ) { 
  7. $debug_mode = true; 
  8.  
  9. return apply_filters( 'monsterinsights_is_debug_mode', $debug_mode );