WordPress at Your Fingertips
function is not described

WC_Customer::set_shipping_address_to_base() public WC 3.0.0

Set customer shipping address to base address.

{} It's a method of the class: WC_Customer{}

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 3.0.0 Introduced.

Code of WC_Customer::set_shipping_address_to_base() WC 5.9.0

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