clanbite_ranks_get_rank_progress( int $user_id, string $rank_type_key ): array<string, mixed>Rank progress payload for a user and rank type (used by the progress bar, REST and the rank toasts).
Namespace: Kernowdev\ClanbiteRanks
Parameters
$user_id(int) RequiredUser ID.
$rank_type_key(string) RequiredRank type key from the Ranks settings.
Returns
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, current_level_index (position on the ladder, -1 when unranked), plus the point-type display labels. Filtered through clanbite_ranks_rank_progress.
Defined in inc/functions.php
Changelog
| Version | Description |
|---|---|
| 1.2.3 | Updated. |