Skip to content

boolean_smtp_oauth_debug_ui

Filters whether the admin UI shows raw OAuth provider diagnostics.

filter Tier C Since 1.0.0

Off by default: raw OAuth provider error bodies can be large and are not meant for end users. Return true to opt in. This filter also gates the raw diagnostic data returned by the REST API; see {@see \BooleanSmtp\Http\Controllers\ConnectionController::refreshOAuthNow()} and {@see \BooleanSmtp\Http\Controllers\ConnectionController::getOAuthRefreshHistory()}.

Signature

add_filter( 'boolean_smtp_oauth_debug_ui', $callback, 10, 1 );

Parameters

ParameterTypeDescription
$enabledboolWhether to show raw OAuth diagnostics. Default false.

Returns bool — The filtered value.

Fires in

Example

boolean_smtp_oauth_debug_ui.php
add_filter( 'boolean_smtp_oauth_debug_ui', function ( bool $enabled ) {
return $enabled;
}, 10, 1 );

Next steps