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
| Parameter | Type | Description |
|---|---|---|
$default | string | Redirect 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
app/Services/Mailer/OAuth/OAuthRedirectUri.php:80—BooleanSmtp\Services\Mailer\OAuth\OAuthRedirectUri::microsoft()
Example
add_filter( 'boolean_smtp_microsoft_oauth_redirect_uri', function ( string $default ) { return $default;}, 10, 1 );Next steps
- Connections and OAuth — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.