WC_Legacy_Customer::set_location
Sets session data for the location.
Method of the class: WC_Legacy_Customer{}
No Hooks.
Returns
null. Nothing (null).
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: ''
WC_Legacy_Customer::set_location() WC Legacy Customer::set location code WC 10.3.6
public function set_location( $country, $state, $postcode = '', $city = '' ) {
$this->set_billing_location( $country, $state, $postcode, $city );
$this->set_shipping_location( $country, $state, $postcode, $city );
}