Add the sample code below to your child theme's functions.php file or in a site specific plugin.
<?php
//* Do NOT include the opening php tag
//* Change formatting for the venue address for the United Kingdom and Canada and Germany and Singapore
function ee_adjust_formatting_venue_address( $address_formats ) {
$address_formats[ 'GB' ] = "{address}%{address2}%{city}%{zip}";
$address_formats[ 'CA' ] = "{address}%{address2}%{city}%{state}%{country}%{zip}";
$address_formats[ 'DE' ] = "{address}%{address2}%{zip} {city}";
$address_formats[ 'NL' ] = "{address}%{address2}%{zip} {city}";
$address_formats[ 'SG' ] = "{address}%{address2}%{city}%{country}%{zip}";
return $address_formats;
}
add_filter( 'FHEE__EE_MultiLine_Address_Formatter__address_formats', 'ee_adjust_formatting_venue_address', 10, 1 );
add_filter( 'FHEE__EE_Inline_Address_Formatter__address_formats', 'ee_adjust_formatting_venue_address', 10, 1 );
Hi Thanks for this snippet, while it works for venues, it doesn't change the way the information is displayed in the messages. I guess I could just hardcode the address in each single template, but that wouldn't make sense?