WordPress at Your Fingertips
function is not described

WC_Legacy_Customer::calculated_shipping() public WC 1.0

Calculated shipping.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Legacy_Customer = new WC_Legacy_Customer();
$WC_Legacy_Customer->calculated_shipping( $calculated );
$calculated *(true false)*

Default: true

Code of WC_Legacy_Customer::calculated_shipping() WC 5.6.0

public function calculated_shipping( $calculated = true ) {
	wc_deprecated_function( 'WC_Customer::calculated_shipping', '3.0', 'WC_Customer::set_calculated_shipping' );
	$this->set_calculated_shipping( $calculated );
}