This filter allows you to modify the HTML structure and add additional data to the store listing template.
In this example the data from a custom field called “my_textinput” is added after the address details:
The <% ... %> and <%= ... %> code is used by the Underscore
library to execute JS code, and to print the correct JSON data when the HTML template is rendered.
If the changes you made don't show up on the frontend, then make sure to flush the store locator transient cache. You can do this on the settings
This filter is located in /frontend/underscore-functions.php.