bb_init

The WordPress Core bb init hook.

Description

add_action( 'bb_init', (string) $bb_contextualise_search_post_text ); 

Parameters (1)

0. $bb_contextualise_search_post_text (string) => 'bb_contextualise_search_post_text'
The bb contextualise search post text.

Usage

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

Defined (5)

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

/bp-forums/bbpress/bb-includes/defaults.bb-filters.php  
  1. add_action( 'bb_init', 'bb_contextualise_search_post_text' ); 
  1. add_action( 'bb_init', 'bb_filter_feed_content' ); 
  1. add_action( 'bb_init', 'bb_register_default_views' ); 
/bp-forums/bbpress/bb-settings.php  
  1. do_action( 'bb_init' ); 
/bp-forums/bp-forums-bbpress-sa.php  
  1. do_action( 'bb_init' );