This filter allows you to change the default options for the opening hours shortcode.
$shortcode_defaults - (array) The current defaults for the opening hours shortcode.
This example hides the opening hours if they are set to “closed” for that day:
The only other attribute you can change for the opening hours shortcode is the id.
If the id field is left empty, it will default to the id from the current page. But this will only work if the shortcode is used on a store page, otherwise the id field is required.
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.