Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Filter which attributes to globally override for address i18n locale information.
IMPORTANT:
This filter is intended to be used with some 3rd-party Checkout Field Editor plugins.
Be extra careful when changing the list of attributes to override for address i18n (internationalization), as it may cause other fields to behave unexpectedly, such as the State field becoming optional when it should be required.
Use fc_checkout_address_i18n_override_locale_field_attributes instead for applying overrides for specific fields.
Parameters #
$override_attributes(array) Attributes to override globally.
Examples #
/**
* Override locale attributes for address fields
*/
function override_locale_attributes( $override_attributes ) {
$override_attributes[] = 'custom-attribute';
return $override_attributes;
}
add_filter( 'fc_checkout_address_i18n_override_locale_attributes', 'override_locale_attributes', 10 );
