---
title: "fswa_http_timeout — Filter Hook"
description: "Sets the total HTTP request timeout in seconds."
url: "https://wpwebhooks.org/docs/fswa-http-timeout/"
---

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

Filter since v1.0.0

# fswa\_http\_timeout

Sets the total HTTP request timeout in seconds.

/ Signature

```
apply_filters( 'fswa_http_timeout', $seconds )
```

/ When it fires

Fires when building the `wp_remote_request()` arguments for each delivery.

/ Parameters

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| $seconds | param | int | yes | Timeout in seconds. Default: \`5\`. |

/ Returns

`int` Timeout in seconds.

/ Examples

Increase timeout for slow external APIs

```
add_filter( 'fswa_http_timeout', function ( $seconds ) {
    return 15;
} );
```

/ Related

[fswa\_http\_connect\_timeout](https://wpwebhooks.org/docs/fswa-http-connect-timeout/)[fswa\_http\_args](https://wpwebhooks.org/docs/fswa-http-args/)

/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_http_timeout — Filter Hook — Webhook Actions Docs","description":"Sets the total HTTP request timeout in seconds.","url":"https://wpwebhooks.org/docs/fswa-http-timeout/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
