Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Event syncing

Events are pulled from iModules every 15 minutes using a cron process which checks for newly updated events. It works by pulling a list of events that have been updated or created since the time of last sync, and importing them one by one, either creating a new event or modifying an existing one.

...

The main functionality for this sync and import process are located in the custom plugin "Cornell Events"

Venues and Timezones

Venues are also imported from iModules if one needs to be created. Each time a new venue is created, it's timezone will also be set based on geographic location so that timezones for events are properly updated.

Event Archives and Listings

The Events Calendar and Events Calendar Pro plugin are used to actually display a list of events on the front-end, and organize the data.

...

The main archive template file is located in the theme folder, cornell/archive-events.php. All individual template partials can be found in the tribe-events folder in the theme.

WP CLI Commands

There are also a few helpful WP CLI commands which can be used to manually run a sync or disable cron. They can be run using terminus, once logged in.

...