Title: Create event through code
Last modified: April 11, 2023

---

# Create event through code

 *  Resolved [lukasd8](https://wordpress.org/support/users/lukasd8/)
 * (@lukasd8)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/create-event-through-code/)
 * Hi, is it possible to create and update events programmatically with my own plugin?
   If yes, is there any documentation for this?
   Cheers, Lukas

Viewing 1 replies (of 1 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/create-event-through-code/#post-16670214)
 * Yes, you can do that. I don’t have any published function documentation, but 
   you can look at the function [mc_check_data()](https://github.com/joedolson/my-calendar/blob/d6440ec6e122e57af67e1a10b394a7b075f7cda2/src/my-calendar-event-editor.php#L1993)
   and [my_calendar_save()](https://github.com/joedolson/my-calendar/blob/d6440ec6e122e57af67e1a10b394a7b075f7cda2/src/my-calendar-event-editor.php#L462)
   to figure it out.

Viewing 1 replies (of 1 total)

The topic ‘Create event through code’ is closed to new replies.

 * ![](https://ps.w.org/my-calendar/assets/icon-256x256.png?rev=1097576)
 * [My Calendar - Accessible Event Manager](https://wordpress.org/plugins/my-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/my-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-calendar/reviews/)

## Tags

 * [create event](https://wordpress.org/support/topic-tag/create-event/)
 * [programmatically](https://wordpress.org/support/topic-tag/programmatically/)

 * 1 reply
 * 2 participants
 * Last reply from: [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/create-event-through-code/#post-16670214)
 * Status: resolved