rcp_edit_discount

Runs immediately after a discount code is edited.

Parameters:

  • $discount_id - ID of the discount code that was edited.
  • $args - Array of discount arguments, including:
    • 'name'
    • 'description'
    • 'amount'
    • 'status'
    • 'unit'
    • 'code'
    • 'expiration'
    • 'max_uses'
    • 'use_count'
    • 'subscription_id'