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
add_filter( 'boolean_smtp_debug_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:460—BooleanSmtp\Support\Debug\WordPressDebugLogger::secretVisibility()app/Support/Debug/WordPressDebugLogger.php:464—BooleanSmtp\Support\Debug\WordPressDebugLogger::secretVisibility()app/Support/Debug/WordPressDebugLogger.php:468—BooleanSmtp\Support\Debug\WordPressDebugLogger::secretVisibility()
Example
add_filter( 'boolean_smtp_debug_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.