WC_Admin_Setup_Wizard::is_shipstation_supported_country() protected WC 1.0
Запрещена (устарела) с версии 4.6.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Is ShipStation country supported
{} Это метод класса: WC_Admin_Setup_Wizard{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->is_shipstation_supported_country( $country_code );
- $country_code(строка) (обязательный)
- Country code.
Список изменений
Устарела с | 4.6.0 |
Код WC_Admin_Setup_Wizard::is_shipstation_supported_country() WC Admin Setup Wizard::is shipstation supported country WC 4.9.0
protected function is_shipstation_supported_country( $country_code ) {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
$supported_countries = array(
'AU', // Australia.
'CA', // Canada.
'GB', // United Kingdom.
);
return in_array( $country_code, $supported_countries, true );
}