mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
6 lines
259 B
Text
6 lines
259 B
Text
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;
|
|
}
|