# boolean_smtp_debug_attach_api_debug

> Filters the legacy API debug response toggle.

Filter · Tier C · Since 1.0.0



## Signature

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

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$enabled` | `bool` | Default false, or the value of the `BOOLEAN_SMTP_DEBUG_ATTACH_API_DEBUG` constant. |

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

## Fires in

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

## Example

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