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.
Метод класса: WC_Order{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Order = new WC_Order(); $WC_Order->set_billing( $address );
- $address(массив) (обязательный)
- Address to set.
Код WC_Order::set_billing() WC Order::set billing WC 9.6.1
public function set_billing( array $address ) { $this->set_billing_address( $address ); }