WC_Admin_Setup_Wizard::is_stripe_supported_country()
Устарела с версии 4.6.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Is Stripe country supported https://stripe.com/global .
Метод класса: WC_Admin_Setup_Wizard{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->is_stripe_supported_country( $country_code );
- $country_code(строка) (обязательный)
- Country code.
Список изменений
Устарела с | 4.6.0 |
Код WC_Admin_Setup_Wizard::is_stripe_supported_country() WC Admin Setup Wizard::is stripe supported country WC 8.7.0
protected function is_stripe_supported_country( $country_code ) { _deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' ); $stripe_supported_countries = array( 'AU', 'AT', 'BE', 'CA', 'DK', 'FI', 'FR', 'DE', 'HK', 'IE', 'JP', 'LU', 'NL', 'NZ', 'NO', 'SG', 'ES', 'SE', 'CH', 'GB', 'US', ); return in_array( $country_code, $stripe_supported_countries, true ); }