Title: create events using PHP code
Last modified: August 22, 2016

---

# create events using PHP code

 *  Resolved [shermano](https://wordpress.org/support/users/shermano/)
 * (@shermano)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/create-events-using-php-code/)
 * Hello all,
    is it possible to create events automatically using API/ PHP or something
   like this?
 * I have xml Files and would like to create all events based on this xml file.
 * Regards,
    shermano
 * [https://wordpress.org/plugins/all-in-one-event-calendar/](https://wordpress.org/plugins/all-in-one-event-calendar/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/create-events-using-php-code/#post-5652285)
 * To see how events can be created programmatically you can look at our ics import
   function `add_vcalendar_events_to_db` which you can find in `lib/import-export/
   ics.php`.
 * It’s quite a long function, i know, towards the end there is event creation
 *  Thread Starter [shermano](https://wordpress.org/support/users/shermano/)
 * (@shermano)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/create-events-using-php-code/#post-5652606)
 * Hi all,
    after a long time I find time to take a look to this file.
 * I have an extended question to this. What I would like to do:
    I have an Database
   with a lot of games with Day, Start and Endtime, Venue and name of the Teams.
   The easiest way for me is to read all necessary parameters from my table and 
   write it into the ai1 event calendar table.
 * To question for this:
    – Is possible? – What timeformat do you have inside of
   the DB?
 * Regards,
    shermano

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘create events using PHP code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/all-in-one-event-calendar.svg)
 * [Timely All-in-One Events Calendar](https://wordpress.org/plugins/all-in-one-event-calendar/)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-event-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-event-calendar/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [shermano](https://wordpress.org/support/users/shermano/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/create-events-using-php-code/#post-5652606)
 * Status: resolved