WC_Countries::get_european_union_countries( string $type = '' )

Gets an array of countries in the EU.


Description Description


Parameters Parameters

$type

(Optional) Type of countries to retrieve. Blank for EU member countries. eu_vat for EU VAT countries.

Default value: ''


Top ↑

Return Return

(string[])


Top ↑

Source Source

File: includes/class-wc-countries.php

	public function get_european_union_countries( $type = '' ) {
		$countries = array( 'AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GR', 'HU', 'HR', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK' );

		if ( 'eu_vat' === $type ) {
			$countries[] = 'MC';
			$countries[] = 'IM';
			// The UK is still part of the EU VAT zone.
			$countries[] = 'GB';
		}

		return apply_filters( 'woocommerce_european_union_countries', $countries, $type );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.