monsterinsights_yst_ga_track_super_admin

Deprecated Filter: 'yst_ga_track_super_admin'.

Description

monsterinsights_yst_ga_track_super_admin( (bool) $track ); 

Allows filtering if the Super admin should be tracked in a multi-site setup. Default false.

Parameters (1)

0. $track (bool)
Whether to track super admins. Default false.

Usage

  1. if ( !function_exists( 'monsterinsights_yst_ga_track_super_admin' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/includes/deprecated.php'; 
  3.  
  4. // Whether to track super admins. Default false. 
  5. $track = true; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = monsterinsights_yst_ga_track_super_admin($track); 
  9.  

Defined (1)

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

/includes/deprecated.php  
  1. function monsterinsights_yst_ga_track_super_admin( $track ) { 
  2. $track = ! $track; // invert track as in Yoast it defaulted to track super admins 
  3. $message = sprintf( __( 'Use %s instead.', 'google-analytics-for-wordpress' ), '<code>monsterinsights_track_super_admins</code>' ); 
  4. return _monsterinsights_apply_filters_deprecated( 'yst_ga_track_super_admin', array( $track ), '6.0.0', $message );