# boolean_smtp_debug_scope

> Filters the debug logging scope.

Filter · Tier C · Since 1.0.0



## Signature

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

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$scope` | `string` | `all` (default) logs every matching event; `boolean_smtp_only` restricts logging to code running from within this plugin. |

**Returns** `string` — The filtered scope.

## Fires in

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

## Example

```php
add_filter( 'boolean_smtp_debug_scope', function ( string $scope ) {
    return $scope;
}, 10, 1 );
```
