Actionable
Interface for discount types that have cart actions.
These are applied to the cart when the discount is applied but before the totals are calculated.
Tags
Table of Contents
- run_cart_actions() : void
- Run the cart actions for the discount type.
- run_order_actions() : void
- Run the order actions for the discount type.
Methods
run_cart_actions()
Run the cart actions for the discount type.
public
run_cart_actions(WC_Cart &$cart) : void
Parameters
- $cart : WC_Cart
Return values
void —run_order_actions()
Run the order actions for the discount type.
public
run_order_actions(WC_Order &$order) : void
Parameters
- $order : WC_Order