Add filter for cart cross-sells
This commit is contained in:
parent
fd1cb2d67f
commit
03d71cd8ee
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue