Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Hi James,

    I know of at least on person who has used Gravity Forms for front-end event submission (though I don’t have example code). Gravity forms lets you execute arbitrary code after a form has been submitted via its provided hooks. I advise against trying to populate the various meta keys that an event requires, but instead hooking into a form submission and using the submitted data (which is passed to the callback) to use Event Organiser’s API to create an event.

    Specifically this function: eo_insert_event() (see codex).

    I’ll mention here that the details in that codex are a bit out of date – although the example still works – you can now pass just the one array to eo_insert_event() rather than splitting it into.

    Due to backwards compatibility, both will work, but passing one array rather than two is just nicer code aesthetics :).

    Thread Starter JamesDunn

    (@jamesdunn)

    Thanks so much Stephen. I needed a direction and you gave it to me. I appreciate the quick response and hopefully this puts me in a position to quickly complete this project since it’s an unpaid project for a non-profit.

    Have a great week.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using Gravity Forms with Event Organizer’ is closed to new replies.