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: ''


Top ↑

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 );
}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.