Discount implementation.
Source
File: /core/helpers/cart.php
Used by: /core/helpers/cart.php, /inc/cart/class-cart.php
Parameters
$discount, $cart_items
Example:
function prefix_wp_travel_trip_discounts( $discount, $cart_items ) { $discount[‘value’] = 200; return $discount; } add_filter( 'wp_travel_trip_discounts', 'prefix_wp_travel_trip_discounts', 12, 2 );