WC_Shipping_Rate::set_cost( string $cost )
Set rate cost.
Description Description
Parameters Parameters
- $cost
-
(Required) Shipping rate cost.
Source Source
File: includes/class-wc-shipping-rate.php
public function set_cost( $cost ) { $this->data['cost'] = $cost; }
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |