BP_Messages_Thread_Template::the_message()
Set up the current message inside the loop.
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
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 BuddyPress 1.1.0 */ do_action( 'thread_loop_start' ); } }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.