jetpack_top_posts_widget_init

The Jetpack by WordPress.com jetpack top posts widget init function.

Description

jetpack_top_posts_widget_init(); 

Usage

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

Defined (1)

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

/modules/widgets/top-posts.php  
  1. function jetpack_top_posts_widget_init() { 
  2. // Currently, this widget depends on the Stats Module 
  3. if ( 
  4. ( ! defined( 'IS_WPCOM' ) || ! IS_WPCOM ) 
  5. && 
  6. ! function_exists( 'stats_get_csv' ) 
  7. ) { 
  8. return; 
  9.  
  10. register_widget( 'Jetpack_Top_Posts_Widget' );