Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Map
  5. Filter :wp_travel_trip_map_use_lat_lng

Filter :wp_travel_trip_map_use_lat_lng

Enable search using latitude/longitude. Default is no.

Source

File: /core/helpers/trips.php
Used by: /core/helpers/trips.php

Parameters
$use_lat_lng, $trip_id

Example:

function prefix_wp_travel_trip_map_use_lat_lng( $use_lat_lng, $trip_id ) {
    $use_lat_lng = ’yes’;
    return $use_lat_lng;
}
add_filter( 'wp_travel_trip_map_use_lat_lng', 'prefix_wp_travel_trip_map_use_lat_lng', 12, 2 );
Was this article helpful to you? Yes No

How can we help?