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
Ready Your next automation is
Your next automation is
one sentence away.
$ wp plugin install flowsystems-webhook-actions --activate