×

walking mode

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8772
    Ali Khallad
    Keymaster

    Hi
    there is a way to change the calculation mode to walking instead driving?
    Maybe it can be a light and useful improvement in the backend

    Anyway great work!
    thanks

    #8773
    Ali Khallad
    Keymaster

    Hello, it’s possible but we have not added a filter to allow for this change, I can add a filter and send you a snippet that you can add to your functions.php if that works for you?

    #8774
    Ali Khallad
    Keymaster

    It would be great
    thank you very much

    #8775
    Ali Khallad
    Keymaster

    Please download the latest version 1.0.8 and add this code to your child theme functions.php

    add_filter('wpali_distance_calculating_mode', 'change_wpali_distance_calculating_mode');
    function change_wpali_distance_calculating_mode(){
        return 'walking';
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.