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.
Method of the class: WC_Order{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Order = new WC_Order(); $WC_Order->set_shipping( $address );
- $address(array) (required)
- Address to set.
WC_Order::set_shipping() WC Order::set shipping code WC 10.5.0
public function set_shipping( array $address ) {
$this->set_shipping_address( $address );
}