WC_Order::set_billing()publicWC 1.0

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() code WC 8.9.0

public function set_billing( array $address ) {
	$this->set_billing_address( $address );
}