WC_Countries::get_vat_countries()publicWC 4.0.0

Gets an array of countries using VAT.

Метод класса: WC_Countries{}

Хуки из метода

Возвращает

Строку[]. of country codes.

Использование

$WC_Countries = new WC_Countries();
$WC_Countries->get_vat_countries();

Список изменений

С версии 4.0.0 Введена.

Код WC_Countries::get_vat_countries() WC 8.7.0

public function get_vat_countries() {
	$eu_countries  = $this->get_european_union_countries();
	$vat_countries = array( 'AE', 'AL', 'AR', 'AZ', 'BB', 'BH', 'BO', 'BS', 'BY', 'CL', 'CO', 'EC', 'EG', 'ET', 'FJ', 'GB', 'GH', 'GM', 'GT', 'IL', 'IM', 'IN', 'IR', 'KN', 'KR', 'KZ', 'LK', 'MC', 'MD', 'ME', 'MK', 'MN', 'MU', 'MX', 'NA', 'NG', 'NO', 'NP', 'PS', 'PY', 'RS', 'RU', 'RW', 'SA', 'SV', 'TH', 'TR', 'UA', 'UY', 'UZ', 'VE', 'VN', 'ZA' );

	return apply_filters( 'woocommerce_vat_countries', array_merge( $eu_countries, $vat_countries ) );
}