bp_get_the_thread_message_date_sent()
Generate the ‘Sent x hours ago’ string for the current message.
Description
Return
(int)
Source
File: bp-messages/bp-messages-template.php
function bp_get_the_thread_message_date_sent() { global $thread_template; /** * Filters the date sent value for the current message as a timestamp. * * @since BuddyPress 2.1.0 * * @param string $value Timestamp of the date sent value for the current message. */ return apply_filters( 'bp_get_the_thread_message_date_sent', strtotime( $thread_template->message->date_sent ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.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.