topic_loop_start

The WordPress Core topic loop start hook.

Description

add_action( 'topic_loop_start', (string) $bp_forums_embed ); 

Parameters (1)

0. $bp_forums_embed (string) => 'bp_forums_embed'
The bp forums embed.

Usage

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

Defined (2)

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

/bp-forums/bp-forums-functions.php  
  1. add_action( 'topic_loop_start', 'bp_forums_embed' ); 
/bp-forums/bp-forums-template.php  
  1. do_action( 'topic_loop_start' );