boolean_smtp_outlook_validate_settings
Filters validation errors for an Outlook connection using a delivery mode not implemented by the free transport.
filter Tier B Since 1.0.0
Fires only when the delivery mode is not `api` (a mode registered by an add-on through the `boolean_smtp_outlook_delivery_modes` filter). Return the validation errors for that mode, keyed by field name.
Signature
add_filter( 'boolean_smtp_outlook_validate_settings', $callback, 10, 3 );Parameters
| Parameter | Type | Description |
|---|---|---|
$errors | array<string, string> | Validation errors keyed by field name; empty until a listener adds to it. |
$mode | string | The connection's delivery mode. |
$settings | array<string, mixed> | Full connection settings being validated. |
Returns array<string, string> — The filtered errors.
Fires in
app/Services/Mailer/Transports/OutlookTransport.php:124—BooleanSmtp\Services\Mailer\Transports\OutlookTransport::validateSettings()
Example
add_filter( 'boolean_smtp_outlook_validate_settings', function ( array $errors, string $mode, array $settings ) { return $errors;}, 10, 3 );Next steps
- Provider transports — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.