WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Create custom booking from serverside (3 posts)

  1. ykushnir
    Member
    Posted 1 year ago #

    Hi!
    I created custom checkbox field in booking form. If user don't check it new booking is simply created. But if user check it I have to create another booking for another event with custom price and similar information like country, names etc...

    In a few words I have to "api" for creating new booking.
    Any idea?

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    unfortunately, this isn't possible at the moment.

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    it is possible, but you have to custom code it.

    e.g.

    $EM_Booking = new EM_Booking();
    //add event id, ticket ids, quantities etc.
    $EM_Booking->save();

    you can see how we do that via the EM_Booking::get_post() function

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic