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.

Method of the class: WC_Order{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Order = new WC_Order();
$WC_Order->set_shipping_address( $address );
$address(array) (required)
Address to set.

WC_Order::set_shipping_address() code WC 8.9.0

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