1. Description
  2. Usage
  3. Changelog
  4. Source File
  5. Related


This filter allows you to modify the “More info” template.


This example is based on the default “More info” template, and includes data from a custom field called “my_textinput”:

Before you can access the “my_textinput” data, you first need to include it in the JSON output with the wpsl_frontend_meta_fields filter.

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 page.


Since 2.0

Source File

This filter is located in /frontend/underscore-functions.php.


The code needs to be placed in the functions.php file inside your active theme folder.