WC_Order::set_shipping_address()publicWC 1.0

Setter for shipping address, expects the $address parameter to be key value pairs for individual address props.

Метод класса: WC_Order{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$WC_Order = new WC_Order();
$WC_Order->set_shipping_address( $address );
$address(массив) (обязательный)
Address to set.

Код WC_Order::set_shipping_address() WC 7.1.0

public function set_shipping_address( array $address ) {
	foreach ( $address as $key => $value ) {
		$this->set_address_prop( $key, 'shipping', $value );
	}
}