# clanbite.ranks.shouldShowRankUpToast

Filters whether a rank-up toast is shown after the progress bar updates. Return `false` to suppress it.

Only consulted when the server reports `show_rank_up_toast`.

```php
wp.hooks.applyFilters( 'clanbite.ranks.shouldShowRankUpToast', boolean show, Object data, HTMLElement bar, {{ userId: number, rankTypeKey: string }} meta )
```

## Parameters

- `$show` (boolean) Default `true`.
- `$data` (Object) Rank progress response from the server.
- `$bar` (HTMLElement) Progress bar element.
- `$meta` ({{ userId: number, rankTypeKey: string }}) Context.
