janizde/WP-Opening-Hours

global holidays /*Enhancement suggestion*/

Opened this issue · 1 comments

Enhancement suggestion.

We already have "include_io" and "include_holidays" in the overview shortcode,
but it would be awesome, if we could enhance it, to also include
"holiday_set=(int|alias)" and "io_set=(int|alias)"
This way, if you have numerous sets, which all have the same holiday (like Christmas day etc.) where they are all closed, it could be written only once.

This would mean that the class would have to be rewritten, to be able to select the IO and holidays, that are active/ in effect, and merge them into the response for the templates.

I don't know, there might be another way of doing it - I would love this feature, but I can't really see a way of doing it as the plugin currently is.

Right now I have a custom field on the sets, where you can select another set object - that is as far as I have gotten though.

I will have a look at this use case for the major period refactoring but there will probably not be an enhancement in the current form of the set architecture as this is probably a very special case.