bbp_widgets_init

The WordPress Core bbp widgets init hook.

Description

add_action( 'bbp_widgets_init', (callback) $array, (int) $int ); 

Parameters (2)

0. $array (callback) => array( 'BBP_Login_Widget', 'register_widget' )
The array.
1. $int (int) => 10
The int.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'bbp_widgets_init', $array, $int ); 
The following example is for adding a hook callback.
  1. // define the bbp_widgets_init callback 
  2. function action_bbp_widgets_init( $array, $int ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'bbp_widgets_init', 'action_bbp_widgets_init', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'bbp_widgets_init', 'action_bbp_widgets_init', 10, 2 ); 

Defined (8)

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

/includes/core/actions.php  
  1. add_action( 'bbp_widgets_init', array( 'BBP_Login_Widget', 'register_widget' ), 10 ); 
  1. add_action( 'bbp_widgets_init', array( 'BBP_Views_Widget', 'register_widget' ), 10 ); 
  1. add_action( 'bbp_widgets_init', array( 'BBP_Search_Widget', 'register_widget' ), 10 ); 
  1. add_action( 'bbp_widgets_init', array( 'BBP_Forums_Widget', 'register_widget' ), 10 ); 
  1. add_action( 'bbp_widgets_init', array( 'BBP_Topics_Widget', 'register_widget' ), 10 ); 
  1. add_action( 'bbp_widgets_init', array( 'BBP_Replies_Widget', 'register_widget' ), 10 ); 
  1. add_action( 'bbp_widgets_init', array( 'BBP_Stats_Widget', 'register_widget' ), 10 ); 
/includes/core/sub-actions.php  
  1. do_action( 'bbp_widgets_init' );