wpsl_gmap_api_version

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

Description

This filter only works in WP Store Locator 2. It was removed in version 3.0 and no longer has any effect. Version 3 loads the Google Maps API from the quarterly release channel, which Google only updates four times a year, so you no longer need to set a fixed version number.

This filter allows you change the used Google Maps API version.

Usage

This code shows how to load a different version number.

You can see a list of the available version numbers here.

Changelog

VersionDescription
3.0Removed. The Google Maps API is now always loaded from the quarterly release channel.
2.2.233The default changed from a fixed version number to quarterly.
2.2.16Introduced.

Source File

This filter is located in /inc/wpsl-functions.php

Placement

The code needs to be placed in the functions.php file inside your active theme folder.