WC_Shipping_Method::calculate_shipping()publicWC 1.0

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Shipping_Method::calculate_shipping() WC 6.8.2

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