WC_Customer::set_shipping_address_to_base
Set customer shipping address to base address.
Method of the class: WC_Customer{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Customer = new WC_Customer(); $WC_Customer->set_shipping_address_to_base();
Changelog
| Since 3.0.0 | Introduced. |
WC_Customer::set_shipping_address_to_base() WC Customer::set shipping address to base code WC 10.5.0
public function set_shipping_address_to_base() {
$base = wc_get_customer_default_location();
$this->set_shipping_location( $base['country'], $base['state'], '', '' );
}