stats_get_blog

Stats Get Blog.

Description

stats_get_blog(); 

Usage

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

Defined (1)

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

/modules/stats.php  
  1. function stats_get_blog() { 
  2. $home = parse_url( trailingslashit( get_option( 'home' ) ) ); 
  3. $blog = array( 
  4. 'host' => $home['host'],  
  5. 'path' => $home['path'],  
  6. 'blogname' => get_option( 'blogname' ),  
  7. 'blogdescription' => get_option( 'blogdescription' ),  
  8. 'siteurl' => get_option( 'siteurl' ),  
  9. 'gmt_offset' => get_option( 'gmt_offset' ),  
  10. 'timezone_string' => get_option( 'timezone_string' ),  
  11. 'stats_version' => STATS_VERSION,  
  12. 'stats_api' => jetpack,  
  13. 'page_on_front' => get_option( 'page_on_front' ),  
  14. 'permalink_structure' => get_option( 'permalink_structure' ),  
  15. 'category_base' => get_option( 'category_base' ),  
  16. 'tag_base' => get_option( 'tag_base' ),  
  17. ); 
  18. $blog = array_merge( stats_get_options(), $blog ); 
  19. unset( $blog['roles'], $blog['blog_id'] ); 
  20. return stats_esc_html_deep( $blog );