bp_get_thread_recipients_count()

Get the number of recipients in the current thread.

Description

Return

(int)

Source

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

1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
function bp_get_thread_recipients_count() {
    global $thread_template;
    /**
     * Filters the total number of recipients in a thread.
     *
     * @since BuddyPress 2.8.0
     *
     * @param int $count Total recipients number.
     */
    return (int) apply_filters( 'bp_get_thread_recipients_count', count( $thread_template->thread->recipients ) );
}

Changelog

Changelog
Version Description
BuddyPress 2.2.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.