# boolean_smtp_debug_http_enabled

> Filters whether the outgoing-HTTP debug channel is enabled.

Filter · Tier C · Since 1.0.0



## Signature

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

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$enabled` | `bool` | Default false; true when the `BOOLEAN_SMTP_DEBUG_HTTP` constant is set or the `boolean_smtp_log_file_enabled` filter switches the `requests` log channel on. |

**Returns** `bool` — The filtered value.

## Fires in

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

## Example

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