How to get the Woocoomerce subtotal value without tax in the hardcode? [closed]

$order->get_subtotal() should get you totals before taxes, coupons and shipping. It’s a method of WC_Abstract_Order which is extended by the actual WC_Order class.