Check if a customer has purchased a specific products in WooCommerce
问题 I need to check if a customer has purchased a specific product earlier in WooCommerce. The case is this: The customer shall not be able to purchase product "c", "d", "e" unless they have purchased product "a" or "b" at an earlier time. If the customer has purchased product "a" or "b" earlier, then the purchase button of product "c", "d" and "e" is activated and they are allowed to buy them. If they haven´t purchased "a" or "b" earlier, they will not be allowed to purchase "c", "d", "e" and