Support

Home Forums Event Espresso Premium Adding 'Score' Meta to Events_Attendee table

Adding 'Score' Meta to Events_Attendee table

Posted: November 18, 2014 at 2:44 pm

Viewing 3 reply threads


Jerry Bold

November 18, 2014 at 2:44 pm

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


Dean

November 19, 2014 at 3:11 am

Hi,

Why not use an Admin Only question? These questions only appear in the admin when you view an individual attendee or export their data.


Jerry Bold

November 19, 2014 at 11:05 am

Ah, I don’t think that capability is listed in the docs! Thanks though, that should work!


Dean

November 20, 2014 at 6:10 am

It is but easily overlooked (we have a lot of documentation!) – https://eventespresso.com/wiki/questions/#30_

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.

Event Espresso