# clanbite.toasts.container

Filters the element the toast stacks are added to (default `document.body`).

Checked every time a toast is shown, and an existing stack is moved when the answer changes, so you can
return a dialog or full-screen element only while it is open. Return another element when toasts must live
inside something else, for example a dialog that makes the rest of the page inert.

```php
wp.hooks.applyFilters( 'clanbite.toasts.container', HTMLElement parent, string position )
```

## Parameters

- `$parent` (HTMLElement) Default parent.
- `$position` (string) The stack's position slug.

## Changelog

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