Calendar, show class full?

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

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

    Is it possible to show the class/event full when listing on the calendar?

    Chris Christenson
    #15344

    There’s no option for this, but there is a filter( eventorganiser_fullcalendar_eventhttp://codex.wp-event-organiser.com/hook-eventorganiser_fullcalendar_event.html) available to do any of the following:

    • Change the title (e.g. include “Sold out”) (change the title property)
    • Change the colour of the event (change the color property)
    • Include “sold out” in the description (change the description property).

    The hook filters an an array (containing the details of an event). So title/color/description are keys in that array.

    One caveat is that the calendar is cached, so you would need to clear this cache whenever a booking is made (otherwise an event will not appear as sold out, when it is). This can be done (for example), via the eventorganiser_confirmed_booking action.

    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.