wpsl_sql

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

Description

This filter allows you to modify the SQL query that determines if a store location falls within the selected radius.

Usage

This example uses the default SQL query and sorting:

If you add additional placeholders like %s or %d to the SQL query, then don’t forget to also add the additional placeholder values with the wpsl_sql_placeholder_values filter.

Changelog

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