function messages_get_unread_count( $user_id = false ) { global $bp; if ( !$user_id ) $user_id = $bp->loggedin_user->id; return BP_Messages_Thread::get_inbox_count( $user_id ); }
function bp_get_total_unread_messages_count() { return apply_filters('bp_get_total_unread_messages_count', BP_Messages_Thread::get_inbox_count()); }
function messages_get_unread_count($user_id = 0) { if (empty($user_id)) { $user_id = bp_loggedin_user_id(); } return BP_Messages_Thread::get_inbox_count($user_id); }
/** * Get the unread messages count for the current inbox. * * @return int */ function bp_get_total_unread_messages_count() { /** * Filters the unread messages count for the current inbox. * * @since 1.0.0 * * @param int $value Unread messages count for the current inbox. */ return apply_filters('bp_get_total_unread_messages_count', BP_Messages_Thread::get_inbox_count()); }
function messages_get_unread_count($user_id = 0) { global $bp; if (empty($user_id)) { $user_id = $bp->loggedin_user->id; } return BP_Messages_Thread::get_inbox_count($user_id); }