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.
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() WC Order::set shipping code WC 9.7.1
public function set_shipping( array $address ) { $this->set_shipping_address( $address ); }