WC_Customer::set_billing_address_to_base()publicWC 3.0.0

Set customer address to match shop base address.

Method of the class: WC_Customer{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Changelog

Since 3.0.0 Introduced.

WC_Customer::set_billing_address_to_base() code WC 8.6.1

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