Skip to content

boolean_smtp_microsoft_authorize_url

Filters the Microsoft identity platform authorize URL used for delegated OAuth.

filter Tier B Since 1.0.0

Signature

add_filter( 'boolean_smtp_microsoft_authorize_url', $callback, 10, 2 );

Parameters

ParameterTypeDescription
$urlstringDefault authorize endpoint for the given tenant.
$tenantstringMicrosoft tenant id, domain, or `common`/`organizations`/`consumers`.

Returns string — The filtered URL.

Fires in

Example

boolean_smtp_microsoft_authorize_url.php
add_filter( 'boolean_smtp_microsoft_authorize_url', function ( string $url, string $tenant ) {
return $url;
}, 10, 2 );

Next steps