WP Webhooks / 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

NameInTypeReqDescription
$delayparamintyesCalculated delay in seconds. Default: `min(2^attempt × 30, 3600)`.
$attemptparamintyesCurrent attempt number (1-based).
$webhook_idparamintyesWebhook 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

Ready

Stop losing webhooks.
Start logging them.

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