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

/ Parameters

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| $args | param | array | yes | Full \`wp\_remote\_request()\` args including \`method\`, \`headers\`, \`body\`, \`timeout\`, \`sslverify\`. |
| $url | param | string | yes | The resolved endpoint URL. |
| $payload | param | array | yes | The outgoing payload array. |

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

[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_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"}}
```
