public function get_shipping_countries()
{
if ('' === get_option('woocommerce_ship_to_countries')) {
return $this->get_allowed_countries();
}
if ('all' === get_option('woocommerce_ship_to_countries')) {
return $this->countries;
}
$countries = array();
$raw_countries = get_option('woocommerce_specific_ship_to_countries');
if ($raw_countries) {
foreach ($raw_countries as $country) {
$countries[$country] = $this->countries[$country];
}
}
return apply_filters('woocommerce_countries_shipping_countries', $countries);
}