# clanbite_ranks_get_user_rank_label()

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.

Global alias of `\Kernowdev\ClanbiteRanks\clanbite_ranks_get_user_rank_label()` so themes and other plugins can use the documented
name behind the usual `function_exists()` check.

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

## Parameters

- `$user_id` (int) User ID.
- `$rank_type_key` (string) Rank type key from the Ranks settings.

## Return

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