Skip to content

boolean_smtp_outlook_probe_one_click

Filters the result of an Outlook One Click connection probe.

filter Tier B Since 1.0.0

Implemented by the BooleanSMTP Pro add-on. A non-array result, or one missing the `success` key, is treated as Pro not being active.

Signature

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

Parameters

ParameterTypeDescription
$resultmixedDefault value; null unless a callback has run. Return `array{success: bool, error?: \WP_Error, status?: string}` describing the outcome.
$settingsarray<string, mixed>Decrypted connection settings.

Returns mixed — The result to use, or the default to run the built-in behaviour.

Fires in

Example

boolean_smtp_outlook_probe_one_click.php
add_filter( 'boolean_smtp_outlook_probe_one_click', function ( $result, array $settings ) {
return $result;
}, 10, 2 );

Next steps