Instantly share code, notes, and snippets.

Embed
What would you like to do?
add_filter( 'woocommerce_localisation_address_formats', 'change_us_address_format' );
function change_us_address_format( $formats ) {
$formats['US'] = "{name}\n{company}\n{address_1}\n{address_2}\n{city}, {state} {postcode}\n{country}";
return $formats;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment