# boolean_smtp_debug_http_mailer_only

> Filters whether the outgoing-HTTP debug channel is restricted to mail-provider URLs.

Filter · Tier C · Since 1.0.0



## Signature

```php
add_filter( 'boolean_smtp_debug_http_mailer_only', $callback, 10, 1 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$mailerOnly` | `bool` | Default true; set to false to log all outgoing HTTP requests. |

**Returns** `bool` — Whether to log mailer requests only.

## Fires in

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

## Example

```php
add_filter( 'boolean_smtp_debug_http_mailer_only', function ( bool $mailerOnly ) {
    return $mailerOnly;
}, 10, 1 );
```
