recpress_location_merge_string

Filters the location merge string. The merge string is used to define out the location is output.

The default merge string used is below:

'geo_city|geo_colloquial_area,geo_administrative_area_level_2_long|geo_administrative_area_level_1_long|geo_country_long'

A comma (,) character defines a split between a location group and are separated with a comma in the location output.

Inside groups, location keys can be passed separated by a pipe (|) character. Only one location string will be returned for each group, the first in the string tried first.

The default string above represents 2 location groups

First a check for a geo_city value is carried out. If this is present in the data, it is returned as the value for the first group. The same them happens in the next group, working through each key until a match is found.


Parameters