---
title: "fswa_http_args — Filter Hook"
description: "Filters the full `wp_remote_request()` arguments array before the HTTP call."
url: "https://wpwebhooks.org/docs/fswa-http-args/"
---

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

Filter since v1.0.0

# fswa\_http\_args

Filters the full \`wp\_remote\_request()\` arguments array before the HTTP call.

/ Signature

```
apply_filters( 'fswa_http_args', $args, $url, $payload )
```

/ When it fires

Fires immediately before `wp_remote_request()` is called, on every delivery attempt. Build with AI endpoint probes (`probe_endpoint`) pass through it too, so proxy, CA and TLS settings apply to them as well.

/ Parameters

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| $args | param | array | yes | The \`wp\_remote\_request()\` args: \`method\`, \`headers\`, \`timeout\`, \`connect\_timeout\`, \`user-agent\`, and \`body\` (JSON) for POST, PUT and PATCH. \`sslverify\` is not set by default — add it to override WordPress's default. |
| $url | param | string | yes | The resolved endpoint URL. |
| $payload | param | array | yes | The outgoing payload array (an empty array for Build with AI endpoint probes). |

/ Returns

`array` Modified \`wp\_remote\_request()\` args.

/ Examples

Disable SSL verification in local development

```
add_filter( 'fswa_http_args', function ( $args, $url, $payload ) {
    if ( defined( 'WP_LOCAL_DEV' ) && WP_LOCAL_DEV ) {
        $args['sslverify'] = false;
    }
    return $args;
}, 10, 3 );
```

/ Related

[fswa\_headers](https://wpwebhooks.org/docs/fswa-headers/)[fswa\_http\_timeout](https://wpwebhooks.org/docs/fswa-http-timeout/)

/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_http_args — Filter Hook — Webhook Actions Docs","description":"Filters the full `wp_remote_request()` arguments array before the HTTP call.","url":"https://wpwebhooks.org/docs/fswa-http-args/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
