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


This filter allows you to define whether the post content is included in the JSON data on the store locator page.

If this is set to true then the post content is accessible in the JSON data under the description key.

The default is set to false.


add_filter( 'wpsl_include_post_content', '__return_true' );
If the load locations on page load option is enabled, you need to clear the store locator transient cache before the post content is included in the JSON data.


Since 2.0

Source File

This filter is located in /frontend/class-frontend.php


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