Title: Update Event-Data with function
Last modified: October 20, 2020

---

# Update Event-Data with function

 *  Resolved [Oliver](https://wordpress.org/support/users/oliverseimo/)
 * (@oliverseimo)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/update-event-data-with-function/)
 * Hi,
    I’d like to be able to create events on a frontend-form. Simply using`update_post_meta()`
   didn’t do the trick for setting the dates.
 * Is there an easy way to achieve that?
 * Thank you and best wishes!
    -  This topic was modified 5 years, 7 months ago by [Oliver](https://wordpress.org/support/users/oliverseimo/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [Oliver](https://wordpress.org/support/users/oliverseimo/)
 * (@oliverseimo)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/update-event-data-with-function/#post-13557414)
 * Well, update_post_meta() did work, I just had a syntax:
 * For Example:
 * Full Day Event for today:
 *     ```
       update_post_meta( ID, 'event_begin', '2020-10-20 00:00:00' );
       update_post_meta( ID, 'event_end', '2020-10-20 00:00:00' );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Update Event-Data with function’ is closed to new replies.

 * ![](https://ps.w.org/event-post/assets/icon.svg?rev=2678301)
 * [Event post](https://wordpress.org/plugins/event-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-post/)
 * [Active Topics](https://wordpress.org/support/plugin/event-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-post/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Oliver](https://wordpress.org/support/users/oliverseimo/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/update-event-data-with-function/#post-13557414)
 * Status: resolved