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
add_filter( 'boolean_smtp_debug_request_secret_visibility', $callback, 10, 1 );Parameters
| Parameter | Type | Description |
|---|---|---|
$visibility | string | One of `show`, `mask`, or `full`. |
Returns string — The filtered visibility.
Fires in
app/Support/Debug/WordPressDebugLogger.php:497—BooleanSmtp\Support\Debug\WordPressDebugLogger::requestPayloadSecretVisibility()app/Support/Debug/WordPressDebugLogger.php:501—BooleanSmtp\Support\Debug\WordPressDebugLogger::requestPayloadSecretVisibility()
Example
add_filter( 'boolean_smtp_debug_request_secret_visibility', function ( string $visibility ) { return $visibility;}, 10, 1 );Next steps
- Internal (unstable) — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.