WC_Cart::clear_shipping_totals
Reset the shipping totals, taxes and methods to none calculated.
Метод класса: WC_Cart{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->clear_shipping_totals(): void;
Код WC_Cart::clear_shipping_totals() WC Cart::clear shipping totals WC 11.3.0
private function clear_shipping_totals(): void {
$this->set_shipping_total( 0 );
$this->set_shipping_tax( 0 );
$this->set_shipping_taxes( array() );
$this->shipping_methods = array();
$this->has_calculated_shipping = false;
}