Merge pull request #11475 from helgatheviking/filter_cart_id
add woocommerce_cart_id filter
This commit is contained in:
commit
f69c36729d
|
@ -879,7 +879,7 @@ class WC_Cart {
|
||||||
$id_parts[] = $cart_item_data_key;
|
$id_parts[] = $cart_item_data_key;
|
||||||
}
|
}
|
||||||
|
|
||||||
return md5( implode( '_', $id_parts ) );
|
return apply_filters( 'woocommerce_cart_id', md5( implode( '_', $id_parts ) ), $product_id, $variation_id, $variation, $cart_item_data );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue