Clanbite Social Kit Players

apply_filters( 'clanbite_social_kit_player_friends_count', int $count, int $profile_user_id )

Filter the displayed friends count for the player friends count block.

Filter PHP

Parameters

$count (int)

Friend count.

$profile_user_id (int)

Profile owner user ID.

Example

add_filter( 'clanbite_social_kit_player_friends_count', function ( $count, $profile_user_id ) {
	// Change $count here.
	return $count;
}, 10, 2 );

Defined in src/blocks/player-friends-count/render.php