Title: Return Event Objects for Devs
Last modified: August 30, 2016

---

# Return Event Objects for Devs

 *  Resolved [brettgoodrich](https://wordpress.org/support/users/10v2/)
 * (@10v2)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/return-event-objects-for-devs/)
 * Is there any way to return an array of event objects? I would like to have more
   control over the way the events are outputted using conditional fields and such
   like. I believe I read through all of your documentation; very nice plugin. I
   could do things like
 *     ```
       (pseudocode)
       foreach event in gce feed id 503
         if (is_today(event->time))
           echo img src="a"
         otherwise echo img src="b"
       ```
   
 * and many other types of powerful conditional language and formatting. I just 
   need direct access to the feed list and feed objects.
 * Would writing my own plugin to connect to Google’s API be easier? I just feel
   like you guys have such a nice feed system and I’d like to play off it.
 * Thanks!
 * [https://wordpress.org/plugins/google-calendar-events/](https://wordpress.org/plugins/google-calendar-events/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/return-event-objects-for-devs/#post-6549742)
 * Hi there,
 * glad you ask because in an upcoming version there’s a bit more room for plugin
   expansion (add ons and such)
 * and in theory what you ask will be possible – there’ll be a new function that
   gets a calendar object and $events is a property so you could loop through those
 * what’s not in place yet it’s two things which could be useful (but probably won’t
   make it for the next iteration)…
 * 1. an events class that can filter the array of events – I think I want to add
   something like this: [https://github.com/yohang/CalendR](https://github.com/yohang/CalendR)(
   but not precisely that library) to loop through months/periods of time and filter
   the events accordingly
 * 2. a template system alternative to the current ‘event builder’ which is really
   just a template made of shortcode-like tags (that will remain anyway for legacy
   but in future I want to overlay a WYSIWYG visual builder a bit like form builders
   around, so people don’t have to use shortcodes anymore)
 * if you are interested in plugin development, the new beta is ready
    [https://github.com/moonstonemedia/WP-Google-Calendar-Events/tree/refactor](https://github.com/moonstonemedia/WP-Google-Calendar-Events/tree/refactor)
   if you want to try it out do get in touch

Viewing 1 replies (of 1 total)

The topic ‘Return Event Objects for Devs’ is closed to new replies.

 * ![](https://ps.w.org/google-calendar-events/assets/icon-256x256.png?rev=1263960)
 * [Simple Calendar - Google Calendar Plugin](https://wordpress.org/plugins/google-calendar-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-events/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-events/reviews/)

## Tags

 * [gce](https://wordpress.org/support/topic-tag/gce/)

 * 1 reply
 * 2 participants
 * Last reply from: [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/return-event-objects-for-devs/#post-6549742)
 * Status: resolved