bp_get_the_thread_recipients()

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

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.

Return

(string)

Source

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

function bp_get_the_thread_recipients() {
	if ( 5 <= bp_get_thread_recipients_count() ) {
		$recipients = sprintf( __( '%s recipients', 'buddyboss' ), number_format_i18n( bp_get_thread_recipients_count() ) );
	} else {
		$recipients = bp_get_thread_recipients_list();
	}

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

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.