thread_loop_start

The WordPress Core thread loop start hook.

Description

add_action( 'thread_loop_start', (string) $bp_messages_screen_conversation_mark_notifications, (int) $int ); 

Parameters (2)

0. $bp_messages_screen_conversation_mark_notifications (string) => 'bp_messages_screen_conversation_mark_notifications'
The bp messages screen conversation mark notifications.
1. $int (int) => 10
The int.

Usage

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

Defined (3)

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

/bp-messages/bp-messages-notifications.php  
  1. add_action( 'thread_loop_start', 'bp_messages_screen_conversation_mark_notifications', 10 ); 
/bp-messages/classes/class-bp-messages-thread-template.php  
  1. do_action( 'thread_loop_start' ); 
/bp-messages/bp-messages-template.php  
  1. add_action( 'thread_loop_start', 'bp_messages_embed' );