bp_get_message_thread_content()

Return the thread’s last message content.

Description

When viewing your Inbox, the last message is the most recent message in the thread of which you are not the author.

When viewing your Sentbox, last message is the most recent message in the thread of which you are the member.

Return

(string) The raw content of the last message in the thread.

Source

File: bp-messages/bp-messages-template.php

	function bp_get_message_thread_content() {
		global $messages_template;

		/**
		 * Filters the content of the last message in the thread.
		 *
		 * @since BuddyPress 2.0.0
		 *
		 * @param string $last_message_content Content of the last message in the thread.
		 */
		return apply_filters( 'bp_get_message_thread_content', $messages_template->thread->last_message_content );
	}

Changelog

Changelog
Version Description
BuddyPress 2.0.0 Introduced.

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.