WC_Abstract_Order::get_total
Gets order grand total including taxes, shipping cost, fees, and coupon discounts. Used in gateways.
Method of the class: WC_Abstract_Order{}
No Hooks.
Returns
float.
Usage
$WC_Abstract_Order = new WC_Abstract_Order(); $WC_Abstract_Order->get_total( $context );
- $context(string)
- View or edit context.
Default:'view'
WC_Abstract_Order::get_total() WC Abstract Order::get total code WC 10.6.2
public function get_total( $context = 'view' ) {
return $this->get_prop( 'total', $context );
}