WC_Countries::get_vat_countries()
Gets an array of countries using VAT.
Method of the class: WC_Countries{}
Hooks from the method
Return
String[]
. of country codes.
Usage
$WC_Countries = new WC_Countries(); $WC_Countries->get_vat_countries();
Changelog
Since 4.0.0 | Introduced. |
WC_Countries::get_vat_countries() WC Countries::get vat countries code WC 9.4.2
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 ) ); }