Overview
  • Package
  • Function
  • Tree
  • Deprecated
  • Todo
  • Hook Reference
  • Docs Home

Packages

  • BKAP
    • Addons
    • Admin-Bookings
    • Attribute-Lockout
    • Block-Pricing
    • Booking-Box
    • Booking-Confirmation
    • Booking-Process
    • Cancel-Order
    • Cart
    • Checkout-Process
    • Core
    • Date-Time
    • Emails
    • Functions
    • Global-Function
    • Global-Settings
    • Google-Calendar-Sync
    • ICS
    • Import-Booking
    • Labels
    • License
    • Menus
    • Meta-Boxes
    • Reschedule
    • Resources
    • Search-Widget
    • Special-Price
    • Uninstall
    • Validation
    • Variation-Lockout
    • Vendors
      • Dokan
      • WC-Vendors
    • View-Bookings
  • None

Classes

  • bkap_common
  • bkap_load_scripts_class

Functions

  • bkap_add_days_to_date
  • bkap_array_of_given_date_range
  • bkap_booked_resources
  • bkap_booking_posts_for_resource
  • bkap_calculate_bookings_for_resource
  • bkap_check_resource_booked_in_date_range
  • bkap_delete_event_from_gcal
  • bkap_get_book_arrays
  • bkap_get_booked
  • bkap_get_booked_checkout
  • bkap_get_day_between_Week
  • bkap_get_lockout
  • bkap_get_month_range
  • bkap_get_posted_availability
  • bkap_get_total_timeslot_maximum_booking
  • bkap_get_week_range
  • bkap_insert_event_to_gcal
  • bkap_save_resources
  • bkapSortByPriority
  • get_availability_for_date
  • get_booked_multiple
  • get_bookings_for_date
  • get_bookings_for_range
  • get_date_lockout
  • get_slot_availability
  • get_slot_lockout
  • get_standard_decimal_thousand_separator_price

Function get_bookings_for_range

Function to calculate dates and/or time slots with the number of bookings received in the date range.

Package: BKAP\Global-Function
Author: Tyche Softwares
Since: 4.5.0
Located at process-functions.php

Parameters summary

integer $product_id Product ID
string $min_date Min_date
string $end_date Date
boolean $include_start = true Pass true if checkout date should be consider

Return value summary

array $dates Array of Date and/or Timeslot with the number of booking received in the date range.
API documentation generated by ApiGen