Login
Get Started

Easy Digital Downloads Documentation

Documentation, Reference Materials, and Tutorials for Easy Digital Downloads 

edd_pre_update_discount

This action runs just before a discount code is updated. It receives two parameters, `$discount_details` and `$discount_id`.

`$discount_details` is an array containing all fields for the discount, such as name, amount, type, etc.

do_action( 'edd_pre_update_discount', $discount_details, $discount_id );
Was this article helpful?

Start selling today!

Join over 50,000 smart store owners, and start using the easiest way to sell digital products with WordPress.

Copyright © 2025 Sandhills Development, LLC