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.

Метод класса: WC_Order{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Order = new WC_Order();
$WC_Order->set_billing( $address );
$address(массив) (обязательный)
Address to set.

Код WC_Order::set_billing() WC 8.7.0

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