Skip to:
Content

BuddyPress.org

Changeset 11292


Ignore:
Timestamp:
12/12/2016 10:37:15 PM (10 years ago)
Author:
slaffik
Message:

Messages: New filter in bp_get_thread_recipients_count().

Provide new filter for bp_get_thread_recipients_count(), which gives ability to alter the total number of recipients in a thread.

Fixes #7387.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-template.php

    r10904 r11292  
    15781578function bp_get_thread_recipients_count() {
    15791579        global $thread_template;
    1580         return count( $thread_template->thread->recipients );
     1580        /**
     1581         * Filters the total number of recipients in a thread.
     1582         *
     1583         * @since 2.8.0
     1584         *
     1585         * @param int $count Total recipients number.
     1586         */
     1587        return (int) apply_filters( 'bp_get_thread_recipients_count', count( $thread_template->thread->recipients ) );
    15811588}
    15821589
Note: See TracChangeset for help on using the changeset viewer.