rpress_pre_insert_discount

Author: bibhu 303 views

This action runs just before a discount code is created. It receives one parameter: $discount_details.

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

do_action( 'rpress_pre_insert_discount', $discount_details );