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
2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 | 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
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.