bp_get_message_thread_unread_count()
Get the current thread’s unread count.
Description Description
Return Return
(int)
Source Source
File: bp-messages/bp-messages-template.php
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 1.0.0 * * @param int $count Current thread unread count. */ return apply_filters( 'bp_get_message_thread_unread_count', $count ); }