Clanbite Ranks

clanbite_ranks_get_user_rank_label( int $user_id, string $rank_type_key ): string

Current rank label of a user for one rank type.

Returns the assigned label for assigned-only ranks, otherwise the highest level the user's points balance reaches.

Namespace: Kernowdev\ClanbiteRanks

Parameters

$user_id (int) Required

User ID.

$rank_type_key (string) Required

Rank type key from the Ranks settings.

Returns

string Rank label, or an empty string when Ranks is inactive or the user has no rank.

Defined in inc/functions.php