Automattic\WooCommerce\Admin\Features\Fulfillments\Providers
USPSShippingProvider::get_shipping_from_countries
Gets the list of origin countries supported by USPS.
Метод класса: USPSShippingProvider{}
Хуков нет.
Возвращает
array<string>. Array of country codes (only 'US').
Использование
$USPSShippingProvider = new USPSShippingProvider(); $USPSShippingProvider->get_shipping_from_countries(): array;
Код USPSShippingProvider::get_shipping_from_countries() USPSShippingProvider::get shipping from countries WC 11.2.2
public function get_shipping_from_countries(): array {
return array( 'US' ); // USPS only ships from the United States.
}