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 example sets the timeout to 10000 ms instead of the default 5000 ms:
This filter is located in /frontend/class-frontend.php.
The code needs to be placed in the functions.php file inside your active theme folder.