Check if a user has bought an item using WooCommerce built-in function
The built-in function woocommerce_customer_bought_product can be used to check if a user has bought an item.
The idea of tracking 404 errors started from here (first posted by WP Mix). The problem is that the result of those tutorials is that you will receive an email for each 404 error, and that can be quite annoying.…