---
description: Add hook code to functions.php file in child theme
---

# Mail

### 1: Remove QR Code in mail when booking event succesfully

```
add_filter( 'el_filter_attach_qrcode_mail', '__return_false' );
```

### 2: Remove PDF ticket in mail when booking event succesfully (From version 1.2.1)

```
add_filter( 'el_filter_attach_pdf_mail', '__return_false' );
```

### 3: Remove QR Code & PDF ticket in mail when booking event succesfully

```
add_filter( 'el_booking_mail_attachments', function(){ return array(); } );
```

