AbstractAddressSchema
AddressSchema class.
Description Description
Provides a generic address schema for composition in other schemas.
Source Source
File: packages/woocommerce-blocks/src/StoreApi/Schemas/AbstractAddressSchema.php
Changelog Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |
Methods Methods
- format_state — Format a state based on the country. If country has defined states, will return an upper case state code.
- get_properties — Term properties.
- sanitize_callback — Sanitize and format the given address object.
- validate_callback — Validate the given address object.