RestroPress

⌘K
  1. Home
  2. Docs
  3. RestroPress
  4. Developer Docs
  5. Actions
  6. rpress_post_update_discount

rpress_post_update_discount

This action runs after a discount code is updated. It receives two parameters, $discount_details and $id.

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

do_action( 'rpress_post_update_discount', $discount_details, $id );

How can we help?