Support » Plugin: Five Star Restaurant Reservations - WordPress Booking Plugin » Early Bookings Longer than 90 Days

  • Resolved dominic_ks



    Wondering if there’s a way to extend the Early Bookings option to longer than 90 days? Doesn’t look like you can in the settings, is there some php hook or function that we could use to add more options?


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


    Hi Dominic,

    We don’t have a direct/specific filter for this, but it should easily be possible using the settings page filter. For example:

    add_filter('rtb_settings_page', '_rtb_settings_page');
    function _rtb_settings_page($sap) {
      $settings_page = &$sap->pages['rtb-settings'];
      $booking_schedule_section = &$settings_page->sections['rtb-schedule'];
      $early_booking_setting = &$booking_schedule_section->settings['early-bookings'];
      $early_booking_setting->options['120'] = "From 120 days in advance";
      return $sap;

    By using a filter like this (e.g. in your theme’s functions.php file), you can have the requested change and it won’t get overwritten on plugin update.

    Thread Starter dominic_ks


    Hi @jaysupport,

    That’s really great thanks for getting back to me, this does exactly what I need.


Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.