bp_get_message_thread_content()

Return the thread’s last message content.


Description 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.


Top ↑

Return Return

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


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


Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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