boolean_smtp_health_check_result
Fires after the scheduled health check has probed one connection and recorded the outcome on it.
action Tier A Since 1.0.0
Fires for healthy and unhealthy connections alike, so a monitoring integration can track every check; the plugin's own alert channels only react to failures.
Signature
add_action( 'boolean_smtp_health_check_result', $callback, 10, 3 );Parameters
| Parameter | Type | Description |
|---|---|---|
$connection | \BooleanSmtp\Models\Connection | The probed connection, with its health status updated. |
$healthy | bool | Whether the probe succeeded. |
$error | string|null | The probe's error message, `null` when healthy. |
Fires in
app/Jobs/HealthCheckJob.php:146—BooleanSmtp\Jobs\HealthCheckJob::handle()
Example
add_action( 'boolean_smtp_health_check_result', function ( \BooleanSmtp\Models\Connection $connection, bool $healthy, ?string $error ) { // React to the event.}, 10, 3 );Next steps
- Connections and OAuth — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.