# boolean_smtp_notification_http_request_args

> Filters the HTTP request arguments used for an outbound notification request.

Filter · Tier B · Since 1.0.0



## Signature

```php
add_filter( 'boolean_smtp_notification_http_request_args', $callback, 10, 3 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$args` | `array<string, mixed>` | Request arguments passed to the WordPress HTTP API. |
| `$url` | `string` | Destination URL for the request. |
| `$payload` | `array<string, mixed>` | Payload the request is sending. |

**Returns** `array<string, mixed>` — The filtered args.

## Fires in

- [app/Services/Notification/Support/RemoteNotificationClient.php:77](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Notification/Support/RemoteNotificationClient.php#L77) — `BooleanSmtp\Services\Notification\Support\RemoteNotificationClient::postJson()`
- [app/Services/Notification/Support/RemoteNotificationClient.php:177](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Notification/Support/RemoteNotificationClient.php#L177) — `BooleanSmtp\Services\Notification\Support\RemoteNotificationClient::postTelegramApi()`
- [app/Services/Notification/Support/RemoteNotificationClient.php:236](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Notification/Support/RemoteNotificationClient.php#L236) — `BooleanSmtp\Services\Notification\Support\RemoteNotificationClient::getTelegramApi()`

## Example

```php
add_filter( 'boolean_smtp_notification_http_request_args', function ( array $args, string $url, array $payload ) {
    return $args;
}, 10, 3 );
```
