# boolean_smtp_debug_secret_visibility

> Filters how sensitive values appear in debug logs and API debug responses.

Filter · Tier C · Since 1.0.0



## Signature

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

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$visibility` | `string` | One of `show`, `mask`, or `full`. |

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

## Fires in

- [app/Support/Debug/WordPressDebugLogger.php:460](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Support/Debug/WordPressDebugLogger.php#L460) — `BooleanSmtp\Support\Debug\WordPressDebugLogger::secretVisibility()`
- [app/Support/Debug/WordPressDebugLogger.php:464](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Support/Debug/WordPressDebugLogger.php#L464) — `BooleanSmtp\Support\Debug\WordPressDebugLogger::secretVisibility()`
- [app/Support/Debug/WordPressDebugLogger.php:468](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Support/Debug/WordPressDebugLogger.php#L468) — `BooleanSmtp\Support\Debug\WordPressDebugLogger::secretVisibility()`

## Example

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