WC_Cart::get_totals_var( string $key )

Get a total.


Description Description


Parameters Parameters

$key

(Required) Key of element in $totals array.


Top ↑

Return Return

(mixed)


Top ↑

Source Source

File: includes/class-wc-cart.php

	protected function get_totals_var( $key ) {
		return isset( $this->totals[ $key ] ) ? $this->totals[ $key ] : $this->default_totals[ $key ];
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.