boolean_smtp_discord_notification_payload
Filters the Discord webhook payload before it is sent.
filter Tier A Since 1.0.0
Signature
add_filter( 'boolean_smtp_discord_notification_payload', $callback, 10, 4 );Parameters
| Parameter | Type | Description |
|---|---|---|
$payload | array<string, mixed> | Discord webhook payload (embeds, username, 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/DiscordChannel.php:98—BooleanSmtp\Services\Notification\Channels\DiscordChannel::send()
Example
add_filter( 'boolean_smtp_discord_notification_payload', function ( array $payload, string $message, array $context, array $settings ) { return $payload;}, 10, 4 );Next steps
- Notifications — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.