From 03d71cd8ee40441621de8e0ee55741b17101a662 Mon Sep 17 00:00:00 2001 From: Caleb Burks <19caleb95@gmail.com> Date: Tue, 11 Jul 2017 13:33:51 -0500 Subject: [PATCH] Add filter for cart cross-sells --- includes/class-wc-cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-cart.php b/includes/class-wc-cart.php index b33f7c6afdf..96f1a75723c 100644 --- a/includes/class-wc-cart.php +++ b/includes/class-wc-cart.php @@ -619,7 +619,7 @@ class WC_Cart { } } $cross_sells = array_diff( $cross_sells, $in_cart ); - return wp_parse_id_list( $cross_sells ); + return apply_filters( 'woocommerce_cart_crosssell_ids', wp_parse_id_list( $cross_sells ), $this ); } /**