WC_Shipping_Rate::set_cost
Set rate cost.
Метод класса: WC_Shipping_Rate{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Shipping_Rate = new WC_Shipping_Rate(); $WC_Shipping_Rate->set_cost( $cost );
- $cost(строка) (обязательный)
- Shipping rate cost.
Список изменений
| С версии 3.2.0 | Введена. |
Код WC_Shipping_Rate::set_cost() WC Shipping Rate::set cost WC 11.1.0
public function set_cost( $cost ) {
$this->data['cost'] = $cost;
}