RestroPress

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

rpress_pre_insert_discount

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 );

How can we help?