jetpack_blog_stats_widget_init

If the Stats module is active in a recent version of Jetpack, register the widget.

Description

jetpack_blog_stats_widget_init(); 

Usage

  1. if ( !function_exists( 'jetpack_blog_stats_widget_init' ) ) { 
  2. require_once '/modules/widgets/blog-stats.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_blog_stats_widget_init(); 
  7.  

Defined (1)

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

/modules/widgets/blog-stats.php  
  1. function jetpack_blog_stats_widget_init() { 
  2. if ( function_exists( 'stats_get_from_restapi' ) ) { 
  3. register_widget( 'Jetpack_Blog_Stats_Widget' );