# boolean_smtp_debug_request_secret_visibility

> Filters the secret visibility used for REST/POST request payload blocks in the `requests` log channel.

Filter · Tier C · Since 1.0.0



## Signature

```php
add_filter( 'boolean_smtp_debug_request_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:497](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Support/Debug/WordPressDebugLogger.php#L497) — `BooleanSmtp\Support\Debug\WordPressDebugLogger::requestPayloadSecretVisibility()`
- [app/Support/Debug/WordPressDebugLogger.php:501](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Support/Debug/WordPressDebugLogger.php#L501) — `BooleanSmtp\Support\Debug\WordPressDebugLogger::requestPayloadSecretVisibility()`

## Example

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