Booking Helper Functions
The helper you can use to create, delete, get and update booking.
function get_booking($booking_id) {...}
Supported hooks
add_filter('before_get_booking', 'before_get_booking_callback_fn', 10, 1);
function before_get_booking_callback_fn ($booking_id) {
// This filter would be executed before retrieving booking from database in get_booking helper.
}add_filter('should_get_booking', 'should_get_booking_callback_fn', 10, 1);
function should_get_booking_callback_fn ($booking_id) {
// This filter would be executed before retrieving booking from database in get_booking helper.
}add_filter('pre.get.booking', 'pre_get_booking_callback_fn', 10, 1);
function pre_get_booking_callback_fn ($booking_id) {
// This filter would be executed before retrieving booking from database in get_booking helper.
}Param
Type
Required
Default
Description
function add_booking($booking) {...}
Supported hooks
Param
Type
Required
Default
Description
function get_bookings($filter) {.....}
Param
Type
Required
Default
Description
function delete_booking($booking_id) {.....}
Param
Type
Required
Description
Last updated