Hi slorduk,
Are you comfortable making small changes to the PHP files? Normally I wouldn’t recommend it, but in this case you can make a temporary change, set up your rules, then set it back to it’s original state. In this way you’ll be able to accomplish what you what — I think (I haven’t tested it).
If so, you’ll need to open the /wp-content/plugins/restaurant-reservations/includes/
(code):
array(
'id' => 'schedule-closed',
'title' => __( 'Exceptions', 'restaurant-reservations' ),
'description' => __( "Define special opening hours for holidays, events or other needs. Leave the time empty if you're closed all day.", 'restaurant-reservations' ),
'time_format' => $this->get_setting( 'time-format' ),
'date_format' => $this->get_setting( 'date-format' ),
'disable_weekdays' => true,
'disable_weeks' => true,
'strings' => $scheduler_strings,
)
Make sure this is the scheduling exception settings (schedule-closed
). Add a new line underneath the strings line:
array(
'id' => 'schedule-closed',
'title' => __( 'Exceptions', 'restaurant-reservations' ),
'description' => __( "Define special opening hours for holidays, events or other needs. Leave the time empty if you're closed all day.", 'restaurant-reservations' ),
'time_format' => $this->get_setting( 'time-format' ),
'date_format' => $this->get_setting( 'date-format' ),
'disable_weekdays' => true,
'disable_weeks' => true,
'strings' => $scheduler_strings,
'time_interval' => 5,
)
Make sure the code is exactly like that. A small typo, or uppercase letter, or missing quote mark can cause an error.
Once you’ve done that, you should be able to go in and set your scheduling exception rules at every 5 minute interval. In this way, you’ll be able to set 2:00-2:05pm and 5:00-5:05pm.
Hopefully, with those settings, you’ll only see the 2pm and 5pm slots available on that day. If it’s working how you want, you can go back and remove that line you added to the code.
As long as you never reset those particular scheduling exceptions, they should remain as they are.