boolean_smtp_before_connection_delete
Fires immediately before a connection is deleted.
action Tier A Since 1.0.0
Signature
add_action( 'boolean_smtp_before_connection_delete', $callback, 10, 1 );Parameters
| Parameter | Type | Description |
|---|---|---|
$payload | array<string, mixed> | |
id | int | Id of the connection about to be deleted. |
data | array<string, mixed> | The connection's full record before deletion. |
timestamp | int | Unix timestamp of the request. |
Fires in
app/Http/Controllers/ConnectionController.php:293—BooleanSmtp\Http\Controllers\ConnectionController::destroy()app/Http/Controllers/ConnectionController.php:348—BooleanSmtp\Http\Controllers\ConnectionController::bulkDestroy()
Example
add_action( 'boolean_smtp_before_connection_delete', function ( array $payload ) { // React to the event.}, 10, 1 );Next steps
- Connections and OAuth — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.