Viewing 1 replies (of 1 total)
  • maksbd19

    (@maksbd19)

    I just had this problem and the following is my solution. Hope this might help someone in future ??

    $product = new WC_Product($product_id);
    
    if($product->product_type){
    	// as the product has a type that means the product exists !!!
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Existence of Product ID’ is closed to new replies.