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.
Return
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 8.7.0
public function set_id( $id ) { $this->data['id'] = (string) $id; }