friends_get_friend_count_for_user( int $user_id )
Get a total friend count for a given user.
Description Description
Parameters Parameters
- $user_id
-
(Optional) ID of the user whose friendships you are counting. Default: displayed user (if any), otherwise logged-in user.
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 ); }
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |