bp_get_the_thread_message_content()
Get the content of the current message in the loop.
Description Description
Return Return
(string)
Source Source
File: bp-messages/bp-messages-template.php
function bp_get_the_thread_message_content() { global $thread_template; $content = $thread_template->message->message; // If user was deleted, mark content as deleted. if ( false === bp_core_get_core_userdata( bp_get_the_thread_message_sender_id() ) ) { $content = esc_html__( '[deleted]', 'buddypress' ); } /** * Filters the content of the current message in the loop. * * @since 1.1.0 * * @param string $message The content of the current message in the loop. */ return apply_filters( 'bp_get_the_thread_message_content', $content ); }
Changelog Changelog
Version | Description |
---|---|
1.1.0 | Introduced. |