Skip to content

boolean_smtp_microsoft_graph_base_url

Filters the Microsoft Graph API base URL.

filter Tier B Since 1.0.0

Allows targeting a national cloud deployment (for example Microsoft Graph for US Government or operated by 21Vianet) instead of the global endpoint.

Signature

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

Parameters

ParameterTypeDescription
$baseUrlstringDefault Microsoft Graph base URL.

Returns string — The filtered base URL.

Fires in

Example

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

Next steps