bp_get_the_thread_recipients()

Get a list of thread recipients or a “x recipients” string.


Description Description

In BuddyPress 2.2.0, this parts of this functionality were moved into the members/single/messages/single.php template. This function is no longer used by BuddyPress.


Top ↑

Return Return

(string)


Source Source

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

function bp_get_the_thread_recipients() {
	if ( 5 <= bp_get_thread_recipients_count() ) {
		/* translators: %s: number of message recipients */
		$recipients = sprintf( __( '%s recipients', 'buddypress' ), number_format_i18n( bp_get_thread_recipients_count() ) );
	} else {
		$recipients = bp_get_thread_recipients_list();
	}

	return apply_filters( 'bp_get_the_thread_recipients', $recipients );
}


Top ↑

User Contributed Notes User Contributed Notes

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