I’m looking to add a very simple score meta to the attendee data for each event they attend. In some (but not all) classes there is a test of some kind given at the end and I would like to be able to save the score of the attendee to their row.
No other sort of hooks are needed (no emails associated, no visibility on client side necessary, admin-only visibility and access) just the ability to save this data to each attendee for that event.
Actions Taken:
Column added to WP_Events_Attendee ‘score’ int(3)
lines added to file /includes/admin-reports/edit_attendee_record.php
[+] ‘score’ => isset($_POST[‘score’]) ? ee_sanitize_value($_POST[‘zip’]) :
to cols_and_values array
[+] $score = $attendee->score;
to foreach ($attendees as $attendee)
next file I’ll be going into:
/includes/admin-reports/event_list_attendees.php
Do you have/know of any other useful places to look? If you had an add-on for this sort of thing, I’d much prefer that route, but did not see anything of the sort.
Wordpress: 3.8.1
Using EE3
Relatively new
Under Development portal, can give credentials to access
Hope that works for you, but if you have any further queries regarding this just get in touch.
Viewing 3 reply threads
The support post ‘Adding 'Score' Meta to Events_Attendee table’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.