• I’m developing a site that will sell training plans, using WooCommerce. The training sessions are crated by my own PHP functions. The idea is to make the sessions available on a Calendar after the purchase, so I need to be able to add content to the calendar “manually” (meaning, neither thru the front or back end, but using my own code). In studying the databases, I saw that when an event is created, it starts from the ‘wp_post’, then info is added to the ‘wp_em_events’, then to ‘wp_postmeta’. I tried to replicate this flow in my code, the entries are created in the DB but the new event does now show in the calendar.

    What would be the correct flow? What part of the (original plugin) code I can look at to see what I have to do? Is it possible to simply use REST API to create en event?

    I’d appreciate any help with this!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Creating an event from WooCommerce’ is closed to new replies.