WC_Legacy_Customer::set_location() public WC 1.0
Sets session data for the location.
{} Это метод класса: WC_Legacy_Customer{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WC_Legacy_Customer = new WC_Legacy_Customer(); $WC_Legacy_Customer->set_location( $country, $state, $postcode, $city );
- $country(строка) (обязательный)
- -
- $state(строка) (обязательный)
- -
- $postcode(строка)
- (default: '')
- $city(строка)
- (default: '')
Код WC_Legacy_Customer::set_location() WC Legacy Customer::set location WC 5.0.0
public function set_location( $country, $state, $postcode = '', $city = '' ) {
$this->set_billing_location( $country, $state, $postcode, $city );
$this->set_shipping_location( $country, $state, $postcode, $city );
}