# clanbite.toasts.allowedUrl

Filters whether a URL may be used in a toast (icon image or action link).

The default allows `http(s)://` and root-relative URLs only. Return `true` to allow another scheme you trust
(for example a `data:` image), or `false` to block a host.

```php
wp.hooks.applyFilters( 'clanbite.toasts.allowedUrl', boolean allowed, string url, string context )
```

## Parameters

- `$allowed` (boolean) Default decision.
- `$url` (string) The URL.
- `$context` (string) `icon` or `action`.

## Changelog

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