---
title: "fswa_notification_http_args — Filter Hook"
description: "Tune the outgoing HTTP request a notification channel makes — timeout, headers, proxy, TLS — per destination or channel type."
url: "https://wpwebhooks.org/docs/fswa-notification-http-args/"
---

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

Filter since v3.3.0

# fswa\_notification\_http\_args

Tune the outgoing HTTP request a notification channel makes — timeout, headers, proxy, TLS — per destination or channel type.

/ Signature

```
apply_filters( 'fswa_notification_http_args', $args, $url, $type )
```

/ When it fires

Right before every HTTP-backed channel sends (email goes through `wp_mail()` and does not pass here). Separate from `fswa_http_args`, which shapes webhook deliveries themselves, so a notification never inherits a header meant for a webhook endpoint.

/ Parameters

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| $args | param | array | yes | The \`wp\_remote\_request()\` arguments: \`method\`, \`timeout\` (10 s), \`headers\`, \`body\`, \`redirection\`, \`user-agent\`. |
| $url | param | string | yes | The destination URL (a Slack or Discord webhook, the Telegram Bot API, a Twilio endpoint, …). |
| $type | param | string | yes | The channel type: \`slack\`, \`discord\`, \`telegram\`, \`teams\`, \`google\_chat\`, \`mattermost\`, \`pushover\`, \`ntfy\`, \`twilio\_sms\`, \`twilio\_whatsapp\`, \`pagerduty\`, \`webhook\`, or a custom driver's type. |

/ Returns

`array` The arguments to send with.

/ Examples

Give Telegram a longer timeout on a slow host

```
add_filter( 'fswa_notification_http_args', function ( array $args, string $url, string $type ) {
    if ( $type === 'telegram' ) {
        $args['timeout'] = 20;
    }
    return $args;
}, 10, 3 );
```

/ Related

[Notifications](https://wpwebhooks.org/docs/notifications/)[fswa\_http\_args](https://wpwebhooks.org/docs/fswa-http-args/)[fswa\_notification\_channel\_drivers](https://wpwebhooks.org/docs/fswa-notification-channel-drivers/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://downloads.wordpress.org/plugin/flowsystems-webhook-actions.zip) [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_notification_http_args — Filter Hook — Webhook Actions Docs","description":"Tune the outgoing HTTP request a notification channel makes — timeout, headers, proxy, TLS — per destination or channel type.","url":"https://wpwebhooks.org/docs/fswa-notification-http-args/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
