---
title: "fswa_backoff_delay — Filter Hook"
description: "Controls the retry delay in seconds between failed delivery attempts."
url: "https://wpwebhooks.org/docs/fswa-backoff-delay/"
---

[WP Webhooks](https://wpwebhooks.org/) / [Docs](https://wpwebhooks.org/docs/) / fswa\_backoff\_delay

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

[fswa\_max\_attempts](https://wpwebhooks.org/docs/fswa-max-attempts/)[Smart Retry with Exponential Backoff](https://wpwebhooks.org/docs/smart-retry/)[Per-Webhook Backoff Strategy](https://wpwebhooks.org/docs/per-webhook-backoff/)

/Ready

## Your next automation is  
one sentence away.

[Try the Live Preview](https://playground.wordpress.net/?blueprint-url=https://wpwebhooks.org/blueprint.json) [See the Plugin →](https://wpwebhooks.org/wordpress-webhook-plugin/)

$ wp plugin install flowsystems-webhook-actions --activate

## Structured data

```json
{"@context":"https://schema.org","@type":"TechArticle","name":"fswa_backoff_delay — Filter Hook — Webhook Actions Docs","description":"Controls the retry delay in seconds between failed delivery attempts.","url":"https://wpwebhooks.org/docs/fswa-backoff-delay/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
