Support » Plugin: WooCommerce » Existence of Product ID
2 years, 10 months ago
Does anyone of you know the code to check to see if a specific product ID exists?
1 year, 11 months ago
I just had this problem and the following is my solution. Hope this might help someone in future 🙂
$product = new WC_Product($product_id);
// as the product has a type that means the product exists !!!