# clanbite.toasts.payload

Filters a toast's options before it is shown.

Use it to adjust wording, duration or position for every toast, or only one `source`. Return the (modified)
options object.

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

## Parameters

- `$payload` (Object) Normalised options: `id`, `type`, `title`, `message`, `icon`, `progress`, `duration` (ms), `timer`, `pauseOnHover`, `position`, `dismissible`, `actions`, `className`, `source`.

## Changelog

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