• Resolved Oliver

    (@oliverseimo)


    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.

    Is there an easy way to achieve that?

    Thank you and best wishes!

    • This topic was modified 4 years, 1 month ago by Oliver.
Viewing 1 replies (of 1 total)
  • Thread Starter Oliver

    (@oliverseimo)

    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.