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


Top ↑

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' );
		}
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.