bp_get_the_thread_message_time_since()

Generate the ‘Sent x hours ago’ string for the current message.


Return Return

(string)


Source Source

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

	function bp_get_the_thread_message_time_since() {

		/**
		 * Filters the 'Sent x hours ago' string for the current message.
		 *
		 * @since 1.1.0
		 *
		 * @param string $value Default text of 'Sent x hours ago'.
		 */
		return apply_filters(
			'bp_get_the_thread_message_time_since',
			sprintf(
				/* translators: %s: last activity timestamp (e.g. "active 1 hour ago") */
				__( 'Sent %s', 'buddypress' ),
				bp_core_time_since( bp_get_the_thread_message_date_sent() )
			)
		);
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.