BP_Messages_Thread_Template::the_message()
Set up the current message inside the loop.
Description Description
Used by bp_thread_the_message() to set up the current message data while looping, so that template tags used during that iteration make reference to the current message.
See also See also
Source Source
File: bp-messages/classes/class-bp-messages-thread-template.php
public function the_message() { $this->in_the_loop = true; $this->message = $this->next_message(); // Loop has just started. if ( 0 === $this->current_message ) { /** * Fires if at the start of the message loop. * * @since 1.1.0 */ do_action( 'thread_loop_start' ); } }