This filter allows you to modify the SQL query that determines if a store location falls within the selected radius.
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
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.