WC_Shipping_Method::calculate_shipping
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() WC Shipping Method::calculate shipping code WC 10.6.2
public function calculate_shipping( $package = array() ) {}