WordPress at a glance
function is not described

WC_Abstract_Order::get_subtotal() public WC 1.0

Gets order subtotal.

{} It's a method of the class: WC_Abstract_Order{}

Hooks from the method
Return

float. Nothing.

Usage

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->get_subtotal();

Code of WC_Abstract_Order::get_subtotal() WC 5.3.0

<?php
public function get_subtotal() {
	$subtotal = NumberUtil::round( $this->get_cart_subtotal_for_order(), wc_get_price_decimals() );
	return apply_filters( 'woocommerce_order_get_subtotal', (float) $subtotal, $this );
}