【发布时间】:2018-05-16 12:29:25
【问题描述】:
我将发货国家/地区列表更改为我自己的:
add_filter( 'woocommerce_countries', 'set_country_list' );
function set_country_list() //changed the method to simplify
{
$countriesDS = mylist.txt(); //[IT] => 'Italy' as example
foreach ($countriesDS->rows as $countryDS) {
$countries[$countryDS->iso_code] = $countryDS->name;
}
}
return $countries;
}
所以,现在当我尝试设置不同的运输区域时,我的一些国家/地区丢失了,一些国家/地区丢失了。
问题:我如何才能在我的列表中仅将国家/地区放入配送区域下拉列表中?
【问题讨论】:
标签: wordpress woocommerce