# clanbite.toasts.shouldShow

Filters whether a toast is shown. Return `false` to suppress it.

```php
wp.hooks.applyFilters( 'clanbite.toasts.shouldShow', boolean show, Object payload )
```

## Parameters

- `$show` (boolean) Default `true`.
- `$payload` (Object) Normalised toast options (see `clanbite.toasts.payload`).

## Changelog

| Version | Description |
| --- | --- |
| 1.5.0 | Introduced |
