friends_get_friend_count_for_user( int $user_id )

Get a total friend count for a given user.

Parameters Parameters


(int) (Optional) ID of the user whose friendships you are counting. Default: displayed user (if any), otherwise logged-in user.

Top ↑

Return Return

(int) Friend count for the user.

Source Source

File: bp-friends/bp-friends-functions.php

function friends_get_friend_count_for_user( $user_id ) {
	return BP_Friends_Friendship::total_friend_count( $user_id );

Top ↑

Changelog Changelog

Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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