Using WooCommerce customer functions to get order counts, spend totals, and check bought products
WooCommerce offers a wide range of customer-related functions that can be beneficial in your custom development projects. I find the functions in this post particularly useful: they allow you to retrieve order counts and total spending and determine if a customer bought a specific product. wc_get_customer_order_count This function returns the amount of orders a specific …