Remove "UK" from location search box

Hi,

While we plan to release an option to customize the location text format (e.g. to exclude country), if it’s urgent you can try to use the hivepress/v1/models/listing/update_location or hivepress/v1/forms/listing_update/errors hook. The first one fires when the location text is saved so you can update it again, removing “, UK” at the end (please also use remove_action to avoid the infinite update loop). The second one is a filter hook fired before the listing edit form is validated, so you can override the location field value before it’s saved.

Hope this helps

1 Like