Automattic\WooCommerce\Internal\Admin\RemoteFreeExtensions
DefaultFreeExtensions::get_rules_for_wcservices_tax_countries
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() 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',
),
);
}