Uname: Linux p3plzcpnl499967.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Software: Apache
PHP version: 8.2.30 [ PHP INFO ] PHP os: Linux
Server Ip: 208.109.40.231
Your Ip: 216.73.216.173
User: nayff91c5tsx (10005085) | Group: nayff91c5tsx (10005085)
Safe Mode: OFF
Disable Function:
NONE

name : booking-functions.php
<?php

use \JET_ABAF\Resources\Booking_Query;

defined( 'ABSPATH' ) || exit; // Exit if accessed directly.

/**
 * Get bookings.
 *
 * Standard way of retrieving bookings based on certain parameters.
 *
 * This function should be used for booking retrieval so that we have a data agnostic
 * way to get a list of booking.
 *
 * @since 3.3.0
 *
 * @param array $args Array of arguments.
 *
 * @return array|object
 */
function jet_abaf_get_bookings( $args = [] ) {
	$query = new Booking_Query( $args );

	return $query->get_bookings();
}

/**
 * Get booking.
 *
 * Main function for returning products.
 *
 * @since 3.3.0
 *
 * @param string|int $id ID of the booking.
 *
 * @return mixed
 */
function jet_abaf_get_booking( $id ) {
	$bookings = jet_abaf_get_bookings( [ 'include' => $id ] );

	return reset( $bookings );
}
© 2026 GrazzMean