rpress_pre_update_discount

Author: bibhu 1 views

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( 'rpress_pre_update_discount', $discount_details, $discount_id );