WC_Order::set_shipping()
Shortcut for calling set_shipping_address. This is useful in scenarios where set_$prop_name is invoked, and since we store the shipping address as 'shipping' prop in data, it can be called directly.
Метод класса: WC_Order{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Order = new WC_Order(); $WC_Order->set_shipping( $address );
- $address(массив) (обязательный)
- Address to set.
Код WC_Order::set_shipping() WC Order::set shipping WC 9.4.2
public function set_shipping( array $address ) { $this->set_shipping_address( $address ); }