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
add_filter( 'boolean_smtp_notification_http_request_args', $callback, 10, 3 );Parameters
| Parameter | 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—BooleanSmtp\Services\Notification\Support\RemoteNotificationClient::postJson()app/Services/Notification/Support/RemoteNotificationClient.php:177—BooleanSmtp\Services\Notification\Support\RemoteNotificationClient::postTelegramApi()app/Services/Notification/Support/RemoteNotificationClient.php:236—BooleanSmtp\Services\Notification\Support\RemoteNotificationClient::getTelegramApi()
Example
add_filter( 'boolean_smtp_notification_http_request_args', function ( array $args, string $url, array $payload ) { return $args;}, 10, 3 );Next steps
- Notifications — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.