stats_set_option

Stats Set Options.

Description

stats_set_option( $option, $value ); 

Parameters (2)

0. $option
The option.
1. $value
The value.

Usage

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

Defined (1)

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

/modules/stats.php  
  1. function stats_set_option( $option, $value ) { 
  2. $options = stats_get_options(); 
  3.  
  4. $options[$option] = $value; 
  5.  
  6. stats_set_options($options);