WC_Customer::set_billing_address_to_base
Set customer address to match shop base address.
Method of the class: WC_Customer{}
No Hooks.
Returns
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() WC Customer::set billing address to base code WC 10.5.0
public function set_billing_address_to_base() {
$base = wc_get_customer_default_location();
$this->set_billing_location( $base['country'], $base['state'], '', '' );
}