Skip to content

boolean_smtp_microsoft_oauth_redirect_uri

Filters the redirect URI used for the Microsoft OAuth2 connection flow.

filter Tier A Since 1.0.0

Return a different URI to override the resolved default.

Signature

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

Parameters

ParameterTypeDescription
$defaultstringRedirect URI resolved from a constant, a local REST callback, or the OAuth server.

Returns string — The value to short-circuit with, or the default to run the built-in behaviour.

Fires in

Example

boolean_smtp_microsoft_oauth_redirect_uri.php
add_filter( 'boolean_smtp_microsoft_oauth_redirect_uri', function ( string $default ) {
return $default;
}, 10, 1 );

Next steps