bp_get_the_thread_message_sender_name()

Get the display name of the sender of the current message.

Description

Return

(string)

Source

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

	function bp_get_the_thread_message_sender_name() {
		global $thread_template;

		$display_name = bp_core_get_user_displayname( $thread_template->message->sender_id );

		if ( empty( $display_name ) ) {
			$display_name = __( 'Deleted User', 'buddyboss' );
		}

		/**
		 * Filters the display name of the sender of the current message.
		 *
		 * @since BuddyPress 1.1.0
		 *
		 * @param string $display_name Display name of the sender of the current message.
		 */
		return apply_filters( 'bp_get_the_thread_message_sender_name', $display_name );
	}

Changelog

Changelog
Version Description
BuddyPress 1.1.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.