---
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 each failed delivery attempt when scheduling the next retry.

/ Parameters

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| $delay | param | int | yes | Calculated delay in seconds. Default: \`min(2^attempt × 30, 3600)\`. |
| $attempt | param | int | yes | Current attempt number (1-based). |
| $webhook\_id | param | int | yes | Webhook configuration ID. |

/ Returns

`int` Delay in seconds before the next attempt is scheduled.

/ 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.

[Install Plugin→](https://wordpress.org/plugins/flowsystems-webhook-actions/) [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"}}
```
