Filter since v1.1.0
fswa_backoff_delay
Controls the retry delay in seconds between failed delivery attempts.
$
/ Signature
apply_filters( 'fswa_backoff_delay', $delay, $attempt, $webhook_id )
/ When it fires
Fires after a retryable failure (5xx, 429 or a transport error) when the next retry is scheduled — including the hand-off of a failed synchronous attempt to the queue. It does not run when no attempts remain or the failure is not retryable.
/ Parameters
| Name | In | Type | Req | Description |
|---|---|---|---|---|
| $delay | param | int | yes | Delay in seconds from the configured backoff strategy (the webhook's own, then the site-wide one). Default (exponential, 30 s base, 1 h cap): `min(2^attempt × 30, 3600)`. |
| $attempt | param | int | yes | Number of attempts that have failed so far (1 after the first failure). |
| $webhook_id | param | int | yes | Webhook configuration ID. |
/ Returns
int Delay in seconds before the next attempt is scheduled. Values below 1 are raised to 1./ Examples
Use fixed 60-second delay for all retries
add_filter( 'fswa_backoff_delay', function ( $delay, $attempt, $webhook_id ) { return 60; }, 10, 3 );
/ Related
Ready Your next automation is
Your next automation is
one sentence away.
$ wp plugin install flowsystems-webhook-actions --activate