Automattic\WooCommerce\Internal\Admin\RemoteFreeExtensions

DefaultFreeExtensions::get_rules_for_wcservices_tax_countries()private 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 9.3.3

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