Automattic\WooCommerce\Internal\Fulfillments\Providers
USPSShippingProvider::get_shipping_to_countries
Gets the list of destination countries supported by USPS.
Method of the class: USPSShippingProvider{}
No Hooks.
Returns
Array. Array of country codes including domestic and international.
Usage
$USPSShippingProvider = new USPSShippingProvider(); $USPSShippingProvider->get_shipping_to_countries(): array;
USPSShippingProvider::get_shipping_to_countries() USPSShippingProvider::get shipping to countries code WC 10.3.3
public function get_shipping_to_countries(): array {
return array_merge(
$this->domestic_countries,
explode( ' ', 'AD AE AF AG AI AL AM AO AR AT AU AW AZ BA BB BD BE BF BG BH BI BJ BM BN BO BR BS BT BW BY BZ CA CD CF CG CH CI CL CM CN CO CR CU CV CY CZ DE DJ DK DM DO DZ EC EE EG ER ES ET FI FJ FR GA GB GD GE GH GI GM GN GQ GR GT GW GY HK HN HR HT HU ID IE IL IN IQ IR IS IT JM JO JP KE KG KH KI KM KN KP KR KW KZ LA LB LC LK LR LS LT LU LV LY MA MC MD ME MG MK ML MM MN MO MR MT MU MV MW MX MY MZ NA NE NG NI NL NO NP NZ OM PA PE PG PH PK PL PT PY QA RO RS RU RW SA SB SC SD SE SG SI SK SL SM SN SO SR ST SV SY SZ TD TG TH TJ TL TM TN TO TR TT TV TW TZ UA UG UK UY UZ VC VE VN VU WS YE ZA ZM ZW' )
);
}