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.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: packages/woocommerce-blocks/src/StoreApi/Schemas/AbstractAddressSchema.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.