Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    Thread Starter Eugene

    (@euge_g)

    Thanks for the response.

    Actually, the EM_Event class is all I might need. I don’t need to add custom event information, only create an EM Event. Would something like this work? (I don’t have access to test right now.)

    $em_event = new EM_Event();
    $em_event->post_title = 'My New Post';
    $em_event->post_content_filtered = 'My post content';
    ...
    $em_event->save();

    If you’re looking to create entirely new events outside of the admin area, you might want to look at /classes/em-event-post-admin.php to see how new events are generated there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Event through API’ is closed to new replies.