WordPress at a glance
function is not described

WC_Legacy_Customer::set_location() public WC 1.0

Sets session data for the location.

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

No Hooks.

Return

Null. Nothing.

Usage

$WC_Legacy_Customer = new WC_Legacy_Customer();
$WC_Legacy_Customer->set_location( $country, $state, $postcode, $city );
$country(string) (required)
-
$state(string) (required)
-
$postcode(string)
(default: '')
$city(string)
(default: '')

Code of WC_Legacy_Customer::set_location() WC 5.0.0

<?php
public function set_location( $country, $state, $postcode = '', $city = '' ) {
	$this->set_billing_location( $country, $state, $postcode, $city );
	$this->set_shipping_location( $country, $state, $postcode, $city );
}