monsterinsights_switch_to_jsevents_show_notice

The Google Analytics for WordPress by MonsterInsights monsterinsights switch to jsevents show notice function.

Description

monsterinsights_switch_to_jsevents_show_notice(); 

Usage

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

Defined (1)

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

/includes/admin/pages/settings.php  
  1. function monsterinsights_switch_to_jsevents_show_notice() { 
  2. if ( empty( $_REQUEST['monsterinsights-message'] ) || $_REQUEST['monsterinsights-message'] !== 'jsvents_mode_switched' ) { 
  3. return; 
  4.  
  5. $allowed_tabs = array( 'engagement', 'performance', 'ecommerce', 'demographics', 'dimensions' ); 
  6. if ( ! empty( $_REQUEST['return'] ) && in_array( $_REQUEST['return'], $allowed_tabs ) ) { 
  7. } else {