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