WC_Shipping_Method::calculate_shipping()publicWC 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.

Return

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 8.6.1

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