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