bp_get_the_thread_message_time_since()
Generate the ‘Sent x hours ago’ string for the current message.
Description
Return
(string)
Source
File: bp-messages/bp-messages-template.php
2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 | function bp_get_the_thread_message_time_since() { /** * Filters the 'Sent x hours ago' string for the current message. * * @since BuddyPress 1.1.0 * * @param string $value Default text of 'Sent x hours ago'. */ return apply_filters( 'bp_get_the_thread_message_time_since' , sprintf( __( '%s' , 'buddyboss' ), bp_core_time_since( bp_get_the_thread_message_date_sent() ) ) ); } |
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.