• Resolved plugmoon2022

    (@plugmoon2022)


    Hi, I like this plugin very much and would like to buy it. Just have a pre purchase question that if there’s any way I can add the “Late Bookings” to At least 48 or 72 hours in advance? (I could pay for it if needed.)

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support jaysupport

    (@jaysupport)

    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.
    Thread Starter plugmoon2022

    (@plugmoon2022)

    Hi, Thank you a lot! This code really helps~

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Late Bookings Setting’ is closed to new replies.