Title: Add Events Programatically
Last modified: February 5, 2023

---

# Add Events Programatically

 *  [s2scas](https://wordpress.org/support/users/s2scas/)
 * (@s2scas)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/add-events-programatically/)
 * Hi Joe!
 * Thanks for the great plugin! 🙂
 * I was wondering if there was a way to add events programmatically when a gravity
   form is submitted. I have a date field in the form and a category number can 
   be assigned to coincide with the my_calendar_categories table.
 * Thank You!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/add-events-programatically/#post-16442430)
 * It’s certainly possible; you’d want to use the `gform_entry_created` action from
   Gravity Forms, a custom handler to take the data from the form and parse it into
   an acceptable format, then it could call `my_calendar_save( 'add', $event )` 
   to create the event.

Viewing 1 replies (of 1 total)

The topic ‘Add Events Programatically’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/add-events-programatically/#post-16442430)
 * Status: not resolved