Support

Home Forums Community Forum Modify attendee information on submission

Modify attendee information on submission

Posted: March 26, 2020 at 7:15 pm

Viewing 2 reply threads


preflight

March 26, 2020 at 7:15 pm

I would like to strip certain characters from attendee information on frontend registrant submission.

I see there is a AHEE__EE_Single_Page_Checkout__process_attendee_information__end action, but this runs after the information has been saved, I would like to modify some of the data prior to being saved.


Josh

  • Support Staff

March 27, 2020 at 2:26 pm

Hi,

You could use the
FHEE__EE_Single_Page_Checkout__process_attendee_information__valid_data_line_item filter hook.

e.g.

add_filter(
    'FHEE__EE_Single_Page_Checkout__process_attendee_information__valid_data_line_item',
    function($data) {
        // loop/iterate through the $data array and strip characters where applicable
        return $data;
    }
);


preflight

March 27, 2020 at 4:27 pm

Much Thanx. Works perfectly.

Viewing 2 reply threads

The support post ‘Modify attendee information on submission’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso