Disable WooCommerce Persistent Cart
If you simply want the customer to see an empty cart after he logs out, use the following code: However, if you want a logged in user’s cart NOT to persist when he is logged in on different browsers/devices, then you need to use the additional code below. Basically, we need to extend and overide … Read more