コード例 #1
0
ファイル: bp-messages.php プロジェクト: n-sane/zaroka
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 );
}
コード例 #2
0
function bp_get_total_unread_messages_count()
{
    return apply_filters('bp_get_total_unread_messages_count', BP_Messages_Thread::get_inbox_count());
}
コード例 #3
0
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);
}
コード例 #4
0
/**
 * 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());
}
コード例 #5
0
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);
}