WC_Shipping_Method::calculate_shippingpublicWC 1.0

Called to calculate shipping rates for this method. Rates can be added using the add_rate() method.

Method of the class: WC_Shipping_Method{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WC_Shipping_Method = new WC_Shipping_Method();
$WC_Shipping_Method->calculate_shipping( $package );
$package(array)
Package array.
Default: array()

WC_Shipping_Method::calculate_shipping() code WC 9.9.3

public function calculate_shipping( $package = array() ) {}