Add filter for cart cross-sells

This commit is contained in:
Caleb Burks 2017-07-11 13:33:51 -05:00
parent fd1cb2d67f
commit 03d71cd8ee
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
/**