WC_Shipping_Method::calculate_shipping()
Called to calculate shipping rates for this method. Rates can be added using the add_rate() method.
Метод класса: WC_Shipping_Method{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Shipping_Method = new WC_Shipping_Method(); $WC_Shipping_Method->calculate_shipping( $package );
- $package(массив)
- Package array.
По умолчанию: array()
Код WC_Shipping_Method::calculate_shipping() WC Shipping Method::calculate shipping WC 9.7.1
public function calculate_shipping( $package = array() ) {}