Description
This filter only works in WP Store Locator 2. It was removed in version 3.0, where this is a setting instead: enable “Hide days marked as closed in the opening hours?” under Store Locator > Settings > User Experience.
This filter enables you to exclude the days that the location is closed from the opening hours list.
The default is set to false.
Usage
This example excludes the days that the location is closed from the opening hours list:
Changelog
| Version | Description |
|---|---|
| 3.0 | Removed. Replaced by the "Hide days marked as closed in the opening hours?" setting under Store Locator > Settings > User Experience. |
| 2.2 | Introduced. |
Source File
This filter is located in /frontend/class-frontend.php.
Placement
The code needs to be placed in the functions.php file inside your active theme folder.