Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking API functions for bookings
- This topic has 0 replies, 1 voice, and was last updated 6 years ago by Christer Fernstrom.
- AuthorPosts
- November 11, 2018 at 9:35 pm #738688Christer FernstromParticipant
I’m building database tables of customers and invoices, including those related to hotel bookings. I have been able to understand most of your (internal) API functions to get information about bookings and customers, except that I’m not sure about how to best find the date when a booking was made, i.e. there does not seem to by any method like $booking->getBookingDate(). What I do for now is to look at the log entries for the booking (stored as comments in the WP database) and take the date of the oldest. But this seems like something which may break in future versions of your plugin. Do you have something better to suggest?
It would also be nice to be able to get a list of bookings sorted on the booking date, using the MPHB()->getBookingRepository()->findAll() method. Do you have something to suggest?
- AuthorPosts
- You must be logged in to reply to this topic.