Checking if customer has already bought something in WooCommerce
2021 UPDATE – Handling guests “billing email” – Improved and secured SQL query Here is a much light and faster conditional function that will return true if a customer has already made a purchase. It handles registered users guest from their user ID and guests from their billing email: For registered users: If the optional … Read more