wpsl_geolocation_timeout

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

Description

With this filter, you can modify how much time the┬ávisitor is given to authorize the location request. If the┬ávisitor doesn’t approve it within the set time limit, then the default store locations are loaded.

This filter is only used if the “Attempt to auto-locate the user” option is enabled on the settings page.

Usage

This example sets the timeout to 10000 ms instead of the default 5000 ms:

Changelog

Since 2.0

Source File

This filter is located in /frontend/class-frontend.php.