# edd_update_discount

 This filter is applied to the discount data just before a discount is created.

```
apply_filters( &#039;edd_insert_discount&#039;, $discount_details);
```

 $discount\_details is an array of all fields for the discount.