This filter enables you to exclude the days that the location is closed from the opening hours list.
The default is set to false.
This example excludes the days that the location is closed from the opening hours list:
If the load locations on page load option is enabled, you need to clear the store locator transient cache to make sure the correct opening hours are shown.
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.