bp_get_message_thread_unread_count()
Get the current thread’s unread count.
Description
Return
(int)
Source
File: bp-messages/bp-messages-template.php
555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 | function bp_get_message_thread_unread_count() { global $messages_template ; $count = ! empty ( $messages_template ->thread->unread_count ) ? (int) $messages_template ->thread->unread_count : false; /** * Filters the current thread's unread count. * * @since BuddyPress 1.0.0 * * @param int $count Current thread unread count. */ return apply_filters( 'bp_get_message_thread_unread_count' , $count ); } |
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.