Action
rpress_cart_discounts_removed
Fires after all discount codes have been removed from the cart.
Runs in RPRESS_Cart::remove_all_discounts() after the cart_discounts session value is cleared. It also runs as part of emptying the cart.
Example#
function my_cart_discounts_removed() {
RPRESS()->session->set( 'my_discount_banner', null );
}
add_action( 'rpress_cart_discounts_removed', 'my_cart_discounts_removed', 10, 0 );
Source#
Fired from:
includes/cart/class-rpress-cart.php(line 520), inRPRESS_Cart::remove_all_discounts()
See also#
Was this page helpful?
