wpsl_hide_closed_hours

  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, 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

VersionDescription
3.0Removed. Replaced by the "Hide days marked as closed in the opening hours?" setting under Store Locator > Settings > User Experience.
2.2Introduced.

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.