WC_Order::set_billing()
Shortcut for calling set_billing_address.
This is useful in scenarios where set_$prop_name is invoked, and since we store the billing address as 'billing' 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_billing( $address );
- $address(array) (required)
- Address to set.
WC_Order::set_billing() WC Order::set billing code WC 9.7.1
public function set_billing( array $address ) { $this->set_billing_address( $address ); }