WordPress at Your Fingertips
function is not described

WC_Abstract_Order::get_total() public WC 1.0

Gets order grand total. incl. taxes. Used in gateways.

{} It's a 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'

Code of WC_Abstract_Order::get_total() WC 5.8.0

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