WC_Shipping_Rate::set_id
Set ID for the rate. This is usually a combination of the method and instance IDs.
Method of the class: WC_Shipping_Rate{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Shipping_Rate = new WC_Shipping_Rate(); $WC_Shipping_Rate->set_id( $id );
- $id(string) (required)
- Shipping rate ID.
Changelog
| Since 3.2.0 | Introduced. |
WC_Shipping_Rate::set_id() WC Shipping Rate::set id code WC 10.5.0
public function set_id( $id ) {
$this->data['id'] = (string) $id;
}