Hi HivePress Team,
I’m using HivePress with the Bookings extension and I need to customize the booking list in the vendor account page (/account/bookings/).
Specifically, I need to:
Order bookings by creation date (newest first) - Currently they appear in a different order, and I want them sorted by post_date DESC.
Increase the number of bookings per page - I would like to display all bookings on a single page (or at least 100 per page) instead of the default 10.
I have tried the following approaches but none worked:
Using pre_get_posts to modify the main query
Using hivepress/v1/models/booking/query filter with posts_per_page and orderby
Using hivepress/v1/controllers/booking/account_bookings/query filter with limit
Using posts_orderby filter to force SQL ordering
The booking list seems to ignore these filters, and the pagination URLs (/account/bookings/page/2/) redirect to login when accessed via AJAX.
Could you please provide the correct hooks or methods to:
Modify the default ordering of bookings in the vendor account
Increase the posts_per_page / limit for the booking list query
Thank you for your help.
Best regards