Viewing 2 replies - 1 through 2 (of 2 total)
  • I would be curious as well. I would love to have an API to import events programmatically rather than having to key in the data manually. Maybe this is something only available in the Pro version. ??

    Brook

    (@brook-tribe)

    Howdy guys,

    You definitely can add events using our API. It’s not super well documented as of yet, but our plugin runs everything through the plugin function

    Tribe__Events__API::createEvent().

    From there you can specify args. There are tons of possible args thought few are required, and this is where our documentation gets a little fuzzy. You can see a list of possible meta values here: https://theeventscalendar.com/knowledgebase/wordpress-post-meta-data/

    You might also checkout the class which power our CSV importer as it implements the above API in a rather concise way. It can be found:

    the-events-calendar/src/io/csv/ecp-events-importer.php

    Personally when I am inserting batches of stuff I just try to generate a CSV programatically and then import that. But, that’s just been my preference to date as its usually quite easy to do.

    I hope that knowledge helps. If you have any specific ideas on what you would like to see in our documentation please let us know. We are working hard to improve it and appreciate the feedback.

    Cheers!
    – Brook

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can Import Events using a function?’ is closed to new replies.