WC_Admin_Setup_Wizard::is_wcs_shipping_labels_supported_country()
Устарела с версии 4.6.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Is WooCommerce Services shipping label country supported
Метод класса: WC_Admin_Setup_Wizard{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->is_wcs_shipping_labels_supported_country( $country_code );
- $country_code(строка) (обязательный)
- Country code.
Список изменений
Устарела с | 4.6.0 |
Код WC_Admin_Setup_Wizard::is_wcs_shipping_labels_supported_country() WC Admin Setup Wizard::is wcs shipping labels supported country WC 8.7.0
protected function is_wcs_shipping_labels_supported_country( $country_code ) { _deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' ); $supported_countries = array( 'US', // United States. ); return in_array( $country_code, $supported_countries, true ); }