# clanbite_ranks_get_rank_progress()

Rank progress payload for a user and rank type (used by the progress bar, REST and the rank toasts).

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

```php
clanbite_ranks_get_rank_progress( int $user_id, string $rank_type_key ): array
```

## Parameters

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

## Return

`array<string, mixed>` Keys: `rank_type_key`, `points_type_key`, `current_points`, `current_level`, `next_level`, `next_min_points`, `points_to_next`, `progress_percent` (0-100), `is_max_level`, `can_progress`, `show_rank_up_toast`, `current_level_icon_url`, plus the point-type display labels. Filtered through `clanbite_ranks_rank_progress`.
