WC_Order::set_billing_address()publicWC 1.0

Setter for billing address, expects the $address parameter to be key value pairs for individual address props.

Method of the class: WC_Order{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Order::set_billing_address() code WC 8.7.0

public function set_billing_address( array $address ) {
	foreach ( $address as $key => $value ) {
		$this->set_address_prop( $key, 'billing', $value );
	}
}