Filter calendars to display user's bookings instead of all events

WordPress Event Management, Calendars & Registration Forums General Question Filter calendars to display user's bookings instead of all events

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 11 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5918

    Hi Stephen –

    Next bit of functionality I need: I need the calendar to display only events that a user has booked for, rather than all events. I’ve looked through the code that defines eo_get_event_fullcalendar but I can’t see where it gets the events from. I realize I’m almost certainly being thick, but any pointers would be much appreciated, as always.

    Thanks!

    John

    s2dd
    #5919

    It gets the events via ajax: https://github.com/stephenharris/Event-Organiser/blob/master/includes/event-organiser-ajax.php and that uses a standard WP_Query.

    But its not that easy to do at the moment. You would either need to specify explicitly which occurrences you wish to show, or filter the results. Neither is really possible without hacking the core functions, but I’ll be updating the free version shortly to make this possible (I’ll be introducing a booking-calendar in the next update).

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.