WC_Customer::set_billing_address_to_base()
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 Customer::set billing address to base WC 9.8.1
public function set_billing_address_to_base() { $base = wc_get_customer_default_location(); $this->set_billing_location( $base['country'], $base['state'], '', '' ); }