• Resolved isasu88

    (@isasu88)


    Hello,

    We’re using Events Manager and we’d like to create a “personal calendar” where users can see the events which they’ve booked. We could do it modifying the calendar-full template.

    Now we are trying to use WP Full Calendar but it’s more difficult to modify the code to do this. In the plugin page you say there are hooks and filters for adding flexibility to developers. Is there any hook or filter we could use for this? Or any way to filter by ID posts?

    Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    Hi,

    You can try to hook into em_calendar_get filter, you can check this for reference under events-manager/classes/em-calendar.php

    Thread Starter isasu88

    (@isasu88)

    Hello,

    Thank you very much for your answer although we find out a better solution. I explain it just in case is useful for anyone else.

    Looking through the code we find out that EM_Calendar and EM_Events were the classes you use to do the query, and that the arguments passed through the shortcode were spread to these classes.

    After that we find out that the attributes available for those classes were documented here: https://wp-events-plugin.com/documentation/advanced-usage/

    So for showing a personal calendar with FullCalendar which only shows the events which a user has booked, we only need to do this [fullcalendar bookings=’user’]

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hook for filtering by user’ is closed to new replies.