# boolean_smtp_alert_delivery_failure_fields

> Filters the label/value fields shown for a delivery-failure notification.

Filter · Tier B · Since 1.0.0



## Signature

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

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$fields` | `array<string, string>` | Field labels mapped to their values. |
| `$email` | `array<string, mixed>` | Email details the fields were built from. |
| `$context` | `array<string, mixed>` | Additional alert context. |

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

## Fires in

- [app/Services/Notification/Presentation/AlertPresentation.php:170](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Notification/Presentation/AlertPresentation.php#L170) — `BooleanSmtp\Services\Notification\Presentation\AlertPresentation::deliveryFailureFields()`

## Example

```php
add_filter( 'boolean_smtp_alert_delivery_failure_fields', function ( array $fields, array $email, array $context ) {
    return $fields;
}, 10, 3 );
```
