# boolean_smtp_debug_http_mailer_url_match

> Filters whether a URL not matched by the built-in provider list counts as mail-related.

Filter · Tier C · Since 1.0.0



## Signature

```php
add_filter( 'boolean_smtp_debug_http_mailer_url_match', $callback, 10, 2 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$matches` | `bool` | Whether the URL should be treated as mail-related. Default false. |
| `$url` | `string` | The URL being checked. |

**Returns** `bool` — Whether the URL belongs to a mailer.

## Fires in

- [app/Support/Debug/WordPressDebugLogger.php:1651](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Support/Debug/WordPressDebugLogger.php#L1651) — `BooleanSmtp\Support\Debug\WordPressDebugLogger::urlLooksLikeMailRelated()`

## Example

```php
add_filter( 'boolean_smtp_debug_http_mailer_url_match', function ( bool $matches, string $url ) {
    return $matches;
}, 10, 2 );
```
