'How to set interval options in "Booked" theme Wordpress

On the website, there is a booking theme in which you can disable registration 1 or 2 hours before the event start, but my task is to write code that will disable registration "30 min before". Plugin does not have this line by default and in .php settings I wrote down this configuration. After saving, the booking service has disabled the possibility of booking 3 days in advance.

Here is the code in settongs.php:

                                                $selected_value = get_option($option_name);

                                                $interval_options = array(
                                                    '0'                 => esc_html__('No buffer','booked'),
                                                    '0.50'              => esc_html__('30 minutes','booked'),
                                                    '1'                 => esc_html__('1 hour','booked'),
                                                    '2'                 => esc_html__('2 hours','booked'),
                                                    '3'                 => esc_html__('3 hours','booked'),
                                                    '4'                 => esc_html__('4 hours','booked'),
                                                    '5'                 => esc_html__('5 hours','booked'),
                                                    '6'                 => esc_html__('6 hours','booked'),
                                                    '12'                => esc_html__('12 hours','booked'),
                                                    '24'                => esc_html__('24 hours','booked'),
                                                ); ?>

How to solve this issue and disable registration 30 min before?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source