WC_Legacy_Customer::set_location( string $country, string $state, string $postcode = '', string $city = '' )
Sets session data for the location.
Description Description
Parameters Parameters
- $country
-
(Required)
- $state
-
(Required)
- $postcode
-
(Optional) (default: '')
Default value: ''
- $city
-
(Optional) (default: '')
Default value: ''
Source Source
File: includes/legacy/class-wc-legacy-customer.php
100 101 102 103 | public function set_location( $country , $state , $postcode = '' , $city = '' ) { $this ->set_billing_location( $country , $state , $postcode , $city ); $this ->set_shipping_location( $country , $state , $postcode , $city ); } |