Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Filter which attributes to override for specific checkout fields on address i18n locale information.
Parameters #
$override_field_attributes(array) Field keys mapped to lists of attribute keys to override. Ie.array( 'shipping_phone' => array( 'label', 'required' ) ).
Examples #
/**
* Override locale attributes for address fields
*/
function override_locale_attributes_shipping_phone( $override_field_attributes ) {
$override_field_attributes = array_merge( $override_field_attributes, array(
'shipping_phone' => array( 'label', 'required' )
) );
return $override_field_attributes;
}
add_filter( 'fc_checkout_address_i18n_override_locale_field_attributes', 'override_locale_attributes_shipping_phone', 10 );
