wpsl_direction_travel_mode

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

Description

This filter allows you to change the travel mode that’s used to calculate the directions. It defaults to driving, but you can change it to bicycling, transit orĀ walking.

Usage

This code example shows how to change the travel mode to walking.

Changelog

Since 2.2.8

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.