WC_Legacy_Customer::get_default_state() public WC 1.0
Get default state for a customer.
{} Это метод класса: WC_Legacy_Customer{}
Хуков нет.
Возвращает
Строку.
Использование
$WC_Legacy_Customer = new WC_Legacy_Customer(); $WC_Legacy_Customer->get_default_state();
Код WC_Legacy_Customer::get_default_state() WC Legacy Customer::get default state WC 5.0.0
public function get_default_state() {
wc_deprecated_function( 'WC_Customer::get_default_state', '3.0', 'wc_get_customer_default_location' );
$default = wc_get_customer_default_location();
return $default['state'];
}