Skip to main content
Address arrays contain private customer data (name, phone, postal address). Never log them. Register these filters before the address book is first read on a request — normalized results are cached per-request and won’t re-run your filter mid-page.

Filters

unwan_address_field_keys

Filters which field keys are stored for every address-book entry.
Email is intentionally excluded by default — it belongs to account identity, not a postal address.

unwan_saved_addresses

Filters a customer’s normalized shared additional addresses after metadata is read.

unwan_checkout_address_options

Filters the checkout-ready option list used by both classic and Blocks checkout.
Each option contains id, name, description, street, details, isDefault, defaultRoles, selectLabel, and fields. Both checkout contexts receive the same set; only ordering and isDefault depend on $type ("billing" or "shipping").

unwan_address_type_enabled

Filters whether a checkout selector is enabled.

unwan_address_save_limit

Filters the shared additional-address limit. Return 0 for unlimited.
Lossless default swaps may preserve a displaced default beyond this limit — see Default Swaps.

unwan_address_search_threshold

Filters the saved-address count above which search appears in checkout and My Account. Return 0 to always show it.

unwan_save_checkout_addresses

Filters whether a validated address entered at checkout is saved to the address book.

unwan_update_checkout_default

Filters whether a new saved checkout address replaces its matching billing or shipping profile default.
Has no effect when checkout-address saving is off.

unwan_color_scheme

Filters the storefront color mode. Supported results are light, dark, and system; anything else falls back to light.

unwan_accent_color

Filters the sanitized six-digit accent color. Invalid results fall back to #6b3fa0.

unwan_account_labels

Filters My Account labels: pageTitle, pageDescription, addAddress, addHeading, editHeading, backToAddresses, saveAddress, cancel, emptyHeading, emptyDescription.

unwan_checkout_picker_labels

Filters shared picker labels: address, billingCompactHeading, shippingCompactHeading, billingPanelHeading, shippingPanelHeading, savedAddress, savedAddresses, moreAddress, moreAddresses, searchLabel, searchPlaceholder, noResults, newAddress, default, change.
Count labels (savedAddress(es), moreAddress(es)) must retain their %d placeholder.

unwan_checkout_block_picker_data

Filters the private data payload sent to the Checkout Blocks picker.

unwan_classic_checkout_picker_data

Filters the private data payload sent to the classic-checkout picker.

unwan_admin_settings

Filters the settings array shown on the Accounts & Privacy → Unwan subsection.

Actions

unwan_addresses_saved

Fires after the shared additional-address collection is persisted — useful for cache invalidation or sync hooks that need to react to any address-book mutation.