WC_Order::set_shipping()publicWC 1.0

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.

Method of the class: WC_Order{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Order::set_shipping() code WC 8.9.0

public function set_shipping( array $address ) {
	$this->set_shipping_address( $address );
}