WC_Cart_Totals::get_default_fee_props()protectedWC 3.2.0

Get default blank set of props used per fee.

Метод класса: WC_Cart_Totals{}

Хуков нет.

Возвращает

Массив.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_default_fee_props();

Список изменений

С версии 3.2.0 Введена.

Код WC_Cart_Totals::get_default_fee_props() WC 8.7.0

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