jetpack_gallery_widget_init

The Jetpack by WordPress.com jetpack gallery widget init function.

Description

jetpack_gallery_widget_init(); 

Usage

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

Defined (1)

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

/modules/widgets/gallery.php  
  1. function jetpack_gallery_widget_init() { 
  2. if ( ! method_exists( 'Jetpack', 'is_module_active' ) || Jetpack::is_module_active( 'tiled-gallery' ) ) 
  3. register_widget( 'Jetpack_Gallery_Widget' );