# Admin::sanitize_toast_duration()

Sanitize the popup length: one of the offered values (seconds, `custom` or `0` = until closed), otherwise the default.

```php
sanitize_toast_duration( $value ): string
```

## Parameters

- `$value` (mixed) Raw value.

## Return

`string` 

## Changelog

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