Function __global->_make_country_for_shippo

Definitions

sources/ecommerce_shipping.php

  • Make an ISO country code shippo-compatible.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$country string No No required parameter N/A N/A ISO country code

Returns

  • Shippo-compatible code
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Make an ISO country code shippo-compatible.
 *
 * @param  string $country ISO country code
 * @return string Shippo-compatible code
 */

function _make_country_for_shippo(string $country) : string