stats_get_option

Get Stats Options.

Description

stats_get_option( $option ); 

Parameters (1)

0. $option
The option.

Usage

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

Defined (1)

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

/modules/stats.php  
  1. function stats_get_option( $option ) { 
  2. $options = stats_get_options(); 
  3.  
  4. if ( $option == 'blog_id' ) 
  5. return Jetpack_Options::get_option( 'id' ); 
  6.  
  7. if ( isset( $options[$option] ) ) 
  8. return $options[$option]; 
  9.  
  10. return null;