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.
Return
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 8.7.0
public function get_total( $context = 'view' ) { return $this->get_prop( 'total', $context ); }