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

2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
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

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.