form submission hook

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 2 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28453

    I have some information in some multi selects and selects that I need to turn in taxonomy data instead of post meta. Is there a form submission hook I can tie into to make this happen? I know I can do it when the post is published (my event submissions are pending until approved) but I would rather do it on form submission.

    Ali Zamanian
    #28462

    Hi Ali,

    There are two hooks you can use:

    eventorganiser_fes_submit_event which filters the array that is then passed to eo_insert_event() (which itself uses wp_insert_post(). You might be able to set the tax_input property. It passes the EO_Event_Form instance as the second argument.

    The second is an action fired immediately after the event is created:

    eventorganiser_fes_submitted_event is passed the event ID, the event array passed to eo_insert_event() and EO_Event_Form instance as the second argument. You use that to retrospectively update the event.

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.