WC_Abstract_Order::get_total()publicWC 1.0

Gets order grand total including taxes, shipping cost, fees, and coupon discounts. Used in gateways.

Метод класса: WC_Abstract_Order{}

Хуков нет.

Возвращает

float.

Использование

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->get_total( $context );
$context(строка)
View or edit context.
По умолчанию: 'view'

Код WC_Abstract_Order::get_total() WC 8.7.0

public function get_total( $context = 'view' ) {
	return $this->get_prop( 'total', $context );
}