Clanbite Ranks

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).

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.

Parameters

$user_id (int) Required

User ID.

$rank_type_key (string) Required

Rank 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, plus the point-type display labels. Filtered through clanbite_ranks_rank_progress.

Defined in inc/functions-global.php