WC_Shipping_Rate::set_id( string $id )
Set ID for the rate. This is usually a combination of the method and instance IDs.
Description Description
Parameters Parameters
- $id
-
(Required) Shipping rate ID.
Source Source
File: includes/class-wc-shipping-rate.php
public function set_id( $id ) { $this->data['id'] = (string) $id; }
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |