bp_members_register_widgets

Register bp-members widgets.

Description

bp_members_register_widgets(); 

Previously, these widgets were registered in bp-core.


Usage

  1. if ( !function_exists( 'bp_members_register_widgets' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-members/bp-members-widgets.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_members_register_widgets(); 
  7.  

Defined (1)

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

/bp-members/bp-members-widgets.php  
  1. function bp_members_register_widgets() { 
  2. add_action( 'widgets_init', function() { return register_widget( 'BP_Core_Members_Widget' ); } ); 
  3. add_action( 'widgets_init', function() { return register_widget( 'BP_Core_Whos_Online_Widget' ); } ); 
  4. add_action( 'widgets_init', function() { return register_widget( 'BP_Core_Recently_Active_Widget' ); } );