WC_Shipping_Rate::set_id()publicWC 3.2.0

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 8.7.0

public function set_id( $id ) {
	$this->data['id'] = (string) $id;
}