edd_update_discount This filter is applied to the discount data just before a discount is created. apply_filters( 'edd_insert_discount', $discount_details); $discount_details is an array of all fields for the discount.