Forums
Home / Plugin: Event post / Update Event-Data with function
(@oliverseimo)
4 years, 1 month ago
Hi, I’d like to be able to create events on a frontend-form. Simply usingupdate_post_meta() didn’t do the trick for setting the dates.
update_post_meta()
Is there an easy way to achieve that?
Thank you and best wishes!
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' );