RestroPress

⌘K
  1. Home
  2. RestroPress
  3. Developer Docs
  4. Actions
  5. 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?