Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Tax::get_automated_support_countries()public staticWC 1.0

Get an array of countries that support automated tax.

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

Хуков нет.

Возвращает

Массив.

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

$result = Tax::get_automated_support_countries();

Код Tax::get_automated_support_countries() WC 8.7.0

public static function get_automated_support_countries() {
	// https://developers.taxjar.com/api/reference/#countries .
	$tax_supported_countries = array_merge(
		array( 'US', 'CA', 'AU', 'GB' ),
		WC()->countries->get_european_union_countries()
	);

	return $tax_supported_countries;
}