bp_get_total_friend_count( int $user_id )

Return the total friend count for a given user.

Parameters Parameters


(int) (Required) See friends_get_total_friend_count().

Top ↑

Return Return

(int) Total friend count.

Source Source

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

	function bp_get_total_friend_count( $user_id = 0 ) {

		 * Filters the total friend count for a given user.
		 * @since 1.2.0
		 * @since 2.6.0 Added the `$user_id` parameter.
		 * @param int $value   Total friend count.
		 * @param int $user_id ID of the queried user.
		return apply_filters( 'bp_get_total_friend_count', friends_get_total_friend_count( $user_id ), $user_id );

Top ↑

Changelog Changelog

Version Description
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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