jetpack_load_widgets

Module Name: Extra Sidebar Widgets Module Description: Add images, Twitter streams, and more to your sidebar.

Description

jetpack_load_widgets(); 

Sort Order: 4 First Introduced: 1.2 Requires Connection: No Auto Activate: Yes Module Tags: Social, Appearance Additional Search Queries: widget, widgets, facebook, gallery, twitter, gravatar, image, rss


Usage

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

Defined (1)

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

/modules/widgets.php  
  1. function jetpack_load_widgets() { 
  2. $widgets_include = array(); 
  3.  
  4. foreach ( Jetpack::glob_php( dirname( __FILE__ ) . '/widgets' ) as $file ) { 
  5. $widgets_include[] = $file; 
  6. /** 
  7. * Modify which Jetpack Widgets to register. 
  8. * @module widgets 
  9. * @since 2.2.1 
  10. * @param array $widgets_include An array of widgets to be registered. 
  11. */ 
  12. $widgets_include = apply_filters( 'jetpack_widgets_to_include', $widgets_include ); 
  13.  
  14. foreach( $widgets_include as $include ) { 
  15. include $include;