WC_Customer::set_calculated_shipping()publicWC 1.0

Calculated shipping?

{} Это метод класса: WC_Customer{}

Хуков нет.

Возвращает

null. Ничего.

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

$WC_Customer = new WC_Customer();
$WC_Customer->set_calculated_shipping( $calculated );
$calculated(true|false)
If shipping is calculated.
По умолчанию: true

Код WC_Customer::set_calculated_shipping() WC 6.9.4

public function set_calculated_shipping( $calculated = true ) {
	$this->calculated_shipping = wc_string_to_bool( $calculated );
}