WC_Countries::countries_using_vat
Deprecated since 4.0.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Gets an array of Non-EU countries that use VAT as the Local name for their taxes based on this list - https://en.wikipedia.org/wiki/Value-added_tax#Non-European_Union_countries
Method of the class: WC_Countries{}
Hooks from the method
Returns
String[].
Usage
$WC_Countries = new WC_Countries(); $WC_Countries->countries_using_vat();
Changelog
| Since 3.9.0 | Introduced. |
| Deprecated since | 4.0.0 |
WC_Countries::countries_using_vat() WC Countries::countries using vat code WC 10.6.2
public function countries_using_vat() {
wc_deprecated_function( 'countries_using_vat', '4.0', 'WC_Countries::get_vat_countries' );
$countries = array( 'AE', 'AL', 'AR', 'AZ', 'BB', 'BH', 'BO', 'BS', 'BY', 'CL', 'CO', 'EC', 'EG', 'ET', 'FJ', 'FO', 'GH', 'GM', 'GT', 'IL', 'IR', 'IS', 'KN', 'KR', 'KZ', 'LK', 'MD', 'ME', 'MK', 'MN', 'MU', 'MX', 'NA', 'NG', 'NP', 'PS', 'PY', 'RS', 'RU', 'RW', 'SA', 'SV', 'TH', 'TR', 'UA', 'UY', 'UZ', 'VE', 'VN', 'ZA' );
return apply_filters( 'woocommerce_countries_using_vat', $countries );
}