WC_Customer::set_billing_address_to_base()publicWC 3.0.0

Set customer address to match shop base address.

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

Хуков нет.

Возвращает

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

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

$WC_Customer = new WC_Customer();
$WC_Customer->set_billing_address_to_base();

Список изменений

С версии 3.0.0 Введена.

Код WC_Customer::set_billing_address_to_base() WC 8.7.0

public function set_billing_address_to_base() {
	$base = wc_get_customer_default_location();
	$this->set_billing_location( $base['country'], $base['state'], '', '' );
}