stats_array

Stats Array.

Description

stats_array( $kvs ); 

Parameters (1)

0. $kvs
The kvs.

Usage

  1. if ( !function_exists( 'stats_array' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/stats.php'; 
  3.  
  4. // The kvs. 
  5. $kvs = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = stats_array($kvs); 
  9.  

Defined (1)

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

/modules/stats.php  
  1. function stats_array( $kvs ) { 
  2. /** 
  3. * Filter the options added to the JavaScript Stats tracking code. 
  4. * @module stats 
  5. * @since 1.1.0 
  6. * @param array $kvs Array of options about the site and page you're on. 
  7. */ 
  8. $kvs = apply_filters( 'stats_array', $kvs ); 
  9. $kvs = array_map( 'addslashes', $kvs ); 
  10. foreach ( $kvs as $k => $v ) 
  11. $jskvs[] = "$k:'$v'"; 
  12. return join( ', ', $jskvs );