messages_get_unread_count( int $user_id )

Get the unread messages count for a user.

Parameters Parameters


(int) (Optional) ID of the user. Default: ID of the logged-in user.

Top ↑

Return Return


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 );

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.