Limit guest users to buy a particular product multiple times in the same week based on previous orders in WooCommerce
问题 I'm looking for a restriction if a guest user has bought a specific product 2 times in a week he must not be able to make another purchase of same product . Im looking to apply this restriction based on guest user's email and phone number. I've seen many posts related to that but all focus on registered users however i want to apply this restriction for guest users. This is the code I am currently using, unfortunately without the desired result function my_ip_checker() { $last_order = get