View Categories

Filters Associated With Geolocation

Filter: wptravel_geo_location_confirmation #

Active Since v10.1.0

This hook allows the acceptance of geolocation by default.

add_filter( 'wptravel_geo_location_confirmation',  function(){ 
   return false; 
});

Filter: wp_travel_enable_geo_location_and_currency_switcher #

Active Sinceย WP Travel Pro v9.8.0

This enables Geo Location support alongside the Currency Switcher

add_filter( โ€˜wp_travel_enable_geo_location_and_currency_switcherโ€™, function(){
        return true;
} );