messages_get_unread_count( int $user_id )
Get the unread messages count for a user.
Description Description
Parameters Parameters
- $user_id
-
(Optional) ID of the user. Default: ID of the logged-in user.
Return Return
(int)
Source Source
File: bp-messages/bp-messages-functions.php
function messages_get_unread_count( $user_id = 0 ) { return BP_Messages_Thread::get_inbox_count( $user_id ); }