I am looking for a way to add a custom field value to the event calendar view. I’d like to style the event based on an ACF select value. It could be a class that is added to the calendar item the displays. Any help would be appreciated.
That is passed the EE_Datetime_In_Calendar object and the EE_Datetime object.
The EE_Datetime_In_Calendar object has an add_class() method so you can pull the event from the datetime within your filter, pull the ACF value using that and then use the above method to set an additional class.
Here is an example of doing something slightly similar:
The support post ‘Event Calendar Add-On Custom Fields’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.