Merge pull request #11475 from helgatheviking/filter_cart_id

add woocommerce_cart_id filter
This commit is contained in:
Mike Jolley 2016-07-19 17:47:23 +02:00 committed by GitHub
commit f69c36729d
1 changed files with 1 additions and 1 deletions

View File

@ -879,7 +879,7 @@ class WC_Cart {
$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 );
}
/**