AbstractAddressSchema::format_state( string $state, string $country )
Format a state based on the country. If country has defined states, will return an upper case state code.
Description Description
Parameters Parameters
- $state
-
(Required) State name or code (sanitized).
- $country
-
(Required) Country code.
Return Return
(string)
Source Source
File: packages/woocommerce-blocks/src/StoreApi/Schemas/AbstractAddressSchema.php