Support

Home Forums Community Forum Modify attendee information on submission

Modify attendee information on submission

Posted: March 26, 2020 at 7:15 pm


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.

You must be logged in to reply to this support post. Sign In or Register for an Account

If you would like help from the Event Espresso staff, then please purchase a support license right now so you can create a support topic in our premium support forums.

Status: publish

Updated by  preflight 2 days, 11 hours ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!