# boolean_smtp_debug_output_xhr

> Filters the legacy API debug response toggle (alias of `boolean_smtp_debug_attach_api_debug`).

Filter · Tier C · Since 1.0.0



## Signature

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

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$enabled` | `bool` | The value resolved by `boolean_smtp_debug_attach_api_debug`. |

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

## Fires in

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

## Example

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