set_shipping_location() публичный Метод

Sets all shipping info at once.
public set_shipping_location ( string $country, string $state = '', string $postcode = '', string $city = '' )
$country string
$state string
$postcode string
$city string
 public static function get_test_customer($country = 'US', $state = 'CO', $zip = '80111', $city = 'Greenwood Village')
 {
     global $woocommerce;
     $customer = new WC_Customer();
     $customer->set_shipping_location($country, $state, $zip, $city);
     return $customer;
 }