rpress_post_insert_discount

Author: bibhu 17 views

This action runs after a discount code is created. It receives two parameters: `$discount_details` and `$discount_id`.

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

do_action( 'rpress_post_insert_discount', $discount_details, $discount_id );