monsterinsights_get_ua_to_output

Helper method for getting the UA string that's output on the frontend.

Description

(string) monsterinsights_get_ua_to_output( (array) $args = array() ); 

Returns (string)

The UA to use on frontend.

Parameters (1)

0. $args — Optional. (array) => array()
Allow calling functions to give args to use in future applications.

Usage

  1. if ( !function_exists( 'monsterinsights_get_ua_to_output' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/includes/options.php'; 
  3.  
  4. // Allow calling functions to give args to use in future applications. 
  5. $args = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = monsterinsights_get_ua_to_output($args); 
  9.  

Defined (1)

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

/includes/options.php  
  1. function monsterinsights_get_ua_to_output( $args = array() ) { 
  2. $ua = apply_filters( 'monsterinsights_get_ua_to_output', $ua, $args ); 
  3. return monsterinsights_is_valid_ua( $ua );