WC_Cart_Totals::get_default_shipping_props()protectedWC 3.2.0

Get default blank set of props used per shipping row.

Method of the class: WC_Cart_Totals{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_default_shipping_props();

Changelog

Since 3.2.0 Introduced.

WC_Cart_Totals::get_default_shipping_props() code WC 8.7.0

protected function get_default_shipping_props() {
	return (object) array(
		'object'    => null,
		'tax_class' => '',
		'taxable'   => false,
		'total'     => 0,
		'total_tax' => 0,
		'taxes'     => array(),
	);
}