WordPress at Your Fingertips
function is not described

WC_Customer::set_calculated_shipping() public WC 1.0

Calculated shipping?

{} It's a method of the class: WC_Customer{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Customer::set_calculated_shipping() WC 5.9.0

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