WC_Shipping_Rate::set_id
Set ID for the rate. This is usually a combination of the method and instance IDs.
Метод класса: WC_Shipping_Rate{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Shipping_Rate = new WC_Shipping_Rate(); $WC_Shipping_Rate->set_id( $id );
- $id(строка) (обязательный)
- Shipping rate ID.
Список изменений
| С версии 3.2.0 | Введена. |
Код WC_Shipping_Rate::set_id() WC Shipping Rate::set id WC 10.5.2
public function set_id( $id ) {
$this->data['id'] = (string) $id;
}