Automattic\WooCommerce\Internal\Admin\RemoteFreeExtensions

DefaultFreeExtensions::get_rules_for_wcservices_tax_countriesprivate staticWC 1.0

Returns the country restrictions for use in the is_visible key for recommending the tax functionality of WooCommerce Shipping & Tax.

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

Хуков нет.

Возвращает

Массив.

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

$result = DefaultFreeExtensions::get_rules_for_wcservices_tax_countries();

Код DefaultFreeExtensions::get_rules_for_wcservices_tax_countries() WC 10.3.4

private static function get_rules_for_wcservices_tax_countries() {
	return array(
		'type'      => 'base_location_country',
		'operation' => 'in',
		'value'     => array(
			'US',
			'FR',
			'GB',
			'DE',
			'CA',
			'AU',
			'GR',
			'BE',
			'PT',
			'DK',
			'SE',
		),
	);
}