WC_Customer::set_calculated_shipping()publicWC 1.0

Calculated shipping?

Method of the class: WC_Customer{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Customer = new WC_Customer();
$WC_Customer->set_calculated_shipping( $calculated );
$calculated(true|false)
If shipping is calculated.
Default: true

WC_Customer::set_calculated_shipping() code WC 8.7.0

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