• Resolved newcomsolution

    (@newcomsolution)


    Is it possible to show the closing time of the current period.

    We have two periods a day. One in the morning and one in the afternoon.

    Per example:
    08.00 – 11.30
    14.00 – 17.00

    In the field Todays opening hours format we would like to show someting like Open until [closing time of current period]. But currently we only have the possibility to show the formatted end time of the last period. If displayed in the morning before 11.30, it would show Open until 17.00. Which is not correct since we actually close at 11.30.

    Is there a simple way to customize the plugin, are there any guides or are there any future updates which may add this additional function?

    PS: You won’t be able to visit the page since it’s still in development, i don’t want to show the access data on a public support page. If there is a way to deliver the access data privately to a support team, feel free to message me.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author janizde

    (@janizde)

    Hi newcomsolution,
    sorry for the late answer. You can always intercept the shortcode output using filters, which are documented here: https://github.com/janizde/WP-Opening-Hours/blob/master/doc/filters.md

    E.g. you could use the op_shortcode_attributes filter to alter the today_string based on the Set which is also passed to the filter. You can then ask the Set instance for the periods and then replace the string with the data you want.

    I hope this helps

Viewing 1 replies (of 1 total)
  • The topic ‘Shop closing-time of current period’ is closed to new replies.