WC_Customer::set_calculated_shipping()
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() WC Customer::set calculated shipping code WC 9.5.1
public function set_calculated_shipping( $calculated = true ) { $this->calculated_shipping = wc_string_to_bool( $calculated ); }