Would you like to access additional details about the events you create on your site? Sugar Calendar allows you to interact with event data using WordPress meta keys. This makes it easy to customize and display event details on your site, especially with page builders like Elementor.
In this guide, we’ll share some of the available meta keys available with the Sugar Calendar plugin.
In This Article
Heads up! This guide contains PHP code and is intended for developers. We offer this code as a courtesy but don’t provide support for code customizations or 3rd party development.
Before getting starting, make sure Sugar Calendar is installed and activated on your site.
Event Start
The following meta keys relate to an event’s start date and time:
sc_event_date
The date an Event starts, in U
PHP Date format.
sc_event_date_time
The date & time an Event starts, in U
PHP Date format.
sc_event_day
The day an Event starts, in D
PHP Date format.
sc_event_month
The month an Event starts, in m
PHP Date format.
sc_event_year
The year an Event starts, in Y
PHP Date format.
sc_event_time_hour
The hour an Event starts, in h
PHP Date format.
sc_event_time_minute
The minute an Event starts, in i
PHP Date format.
sc_event_time_am_pm
The Meridiem an Event starts, in a
PHP Date format.
sc_event_day_of_week
The day of the week an Event starts, in w
PHP Date format.
sc_event_day_of_month
The day of the month an Event starts, in d
PHP Date format.
sc_event_day_of_year
The day of the year an Event starts, in z
PHP Date format.
Event End
The following meta keys relate to the end date and time of the Event:
sc_event_end_date
The date an Event ends, in U
PHP Date format.
sc_event_end_date_time
The date & time an Event ends, in U
PHP Date format.
sc_event_end_day
The day an Event ends, in D
PHP Date format.
sc_event_end_month
The month an Event ends, in m
PHP Date format.
sc_event_end_year
The year an Event ends, in Y
PHP Date format.
sc_event_end_time_hour
The hour an Event ends, in h
PHP Date format.
sc_event_end_time_minute
The minute an Event ends, in i
PHP Date format.
sc_event_end_time_am_pm
The meridiem an Event ends, in a
PHP Date format.
sc_event_end_day_of_week
The day of the week an Event ends, in w
PHP Date format.
sc_event_end_day_of_month
The day of the month an Event ends, in d
PHP Date format.
sc_event_end_day_of_year
The day of the year an Event ends, in z
PHP Date format.
Recurring
The following meta keys pertain to recurring events:
sc_event_recurring
The type of recurrence for an Event (none|daily|weekly|monthly|yearly)
sc_recur_until
The date & time an Event stops recurring, in U
PHP Date format.
sc_all_recurring
Get all sequences for a recurring Event.
That’s it! You’ve now learned about the available post meta data Sugar Calendar provides.
Next, would you learn more about extending the functionality of the Sugar Calendar plugin? Be sure to check our guide for details on the available hooks and filters Sugar Calendar provides.