# boolean_smtp_slack_notification_payload

> Filters the Slack webhook payload before it is sent.

Filter · Tier A · Since 1.0.0



## Signature

```php
add_filter( 'boolean_smtp_slack_notification_payload', $callback, 10, 4 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$payload` | `array<string, mixed>` | Slack webhook payload (blocks, text, and so on). |
| `$message` | `string` | Human-readable alert message. |
| `$context` | `array<string, mixed>` | Additional context passed to the channel. |
| `$settings` | `array<string, mixed>` | Channel settings the payload was built from. |

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

## Fires in

- [app/Services/Notification/Channels/SlackChannel.php:94](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Notification/Channels/SlackChannel.php#L94) — `BooleanSmtp\Services\Notification\Channels\SlackChannel::send()`

## Example

```php
add_filter( 'boolean_smtp_slack_notification_payload', function ( array $payload, string $message, array $context, array $settings ) {
    return $payload;
}, 10, 4 );
```
