Modify the street separator epl_property_address_separator

By default the street separator is a comma: , This default can be altered using the epl_property_address_separator filter.

Single Template

Search Results (archive card) Template

Implementing the filter

Use the following php code snippet to change the default comma to your requirements.

/**
 * Alter the symbol at the end of the street address component.
 *
 */
function my_epl_property_address_separator( $symbol ) {

	$symbol = '';

	return $symbol;
}
add_filter( 'epl_property_address_separator', 'my_epl_property_address_separator' );

This will return an empty value removing the comma.

How to add a comma after the suburb or optional city fields

The plugin also has separators for the suburb and city if required, by default these are disabled "false", set the filter to true to enable them.

Filters:

  • epl_property_address_separator_suburb
  • epl_property_address_separator_city
/**
 * Enable the city or suburb separator.
 *
 */
function my_epl_property_address_separator_enable( $symbol ) {
	return true;
}
// Add a separator after the suburb.
add_filter( 'epl_property_address_separator_suburb', 'my_epl_property_address_separator_enable' );

// Add a separator after the city.
add_filter( 'epl_property_address_separator_city', 'my_epl_property_address_separator_enable' );