I am using WooCommerce Bookings plugin and I currently looking to display additional information in the booking summary (product options).

To do this I use the following hook: woocommerce_admin_booking_data_after_booking_details

If my reservation is linked to an order, I retrieve my data using the function wc_get_order_item_meta

I would like to be able to retrieve my data when the reservation is not yet an order (simply added to the basket for example).

When browsing the database I saw that the information was stored in the table woocommerce_sessions.
In the hook I use, I only have access to the ID of the reservation.

Is it possible to retrieve the corresponding session from this one?


Read more here: WooCommerce Bookings: Retrieve the booking data before order is created


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: