wpsl_store_data

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

Description

This filter allows you to modify the search results data just before they are send to the store locator.

Usage

add_filter( 'wpsl_store_data', 'custom_store_data' );

function custom_store_data( $store_data ) {

    foreach ( $store_data as $k => $store ) {
        // modify the data for each location here.
    }

    return $store_data;
}

Changelog

Since 2.2.0

Source File

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

Placement

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