get all product info by product id php woocommerce code example Example: woocommerce get product id global $product; $product->get_id();