WC_Abstract_Order::get_total()
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 Abstract Order::get total WC 9.7.1
public function get_total( $context = 'view' ) { return $this->get_prop( 'total', $context ); }