Hi plug,
Discussion of the premium version is not allowed in these support forums (https://ww.wp.xz.cn/support/guidelines/#do-not-post-about-commercial-products). For any discussion related to the premium version, or about purchasing, etc., please contact us via our support center (https://www.fivestarplugins.com/support-center/).
That being said, the late bookings setting is not a premium feature. That is part of this free plugin. And there is a way to extend that setting and add more/different options to it. It requires a bit of coding, though. We’ve created a filter that hooks directly into that setting, which you can use to alter it. The filter is: rtb_setting_late_booking_options
An example of how to use it would be:
add_filter( 'rtb_setting_late_booking_options', 'change_late_bookings_options' );
function change_late_bookings_options( $list ) {
// Minutes equivalent to 48 hours
$list['2880'] = __( 'At least 48 hours in advance', 'restaurant-reservations' );
// Minutes equivalent to 72 hours
$list['4320'] = __( 'At least 72 hours in advance', 'restaurant-reservations' );
return $list;
}
This will add options for 48 hours and 72 hours.
You can place this code in your active (child) theme’s functions.php file.
-
This reply was modified 4 years, 4 months ago by
jaysupport.
Hi, Thank you a lot! This code really helps~