Support

Home Forums Event Espresso Premium How to retrieve user & course information with REG_ID

How to retrieve user & course information with REG_ID

Posted: May 7, 2015 at 11:49 pm

Viewing 4 reply threads


Mohamed Rafi

May 7, 2015 at 11:49 pm

Hello Support,

I am integrating EE4 with my custom module, In that I would like to get the particular attendee’s information &course detail with the REG_ID.

Please let me know which method I can get all those details using REG_ID ?


Dean

May 11, 2015 at 3:25 am

Hi,

You could look at using the EEM_Attendee class: http://code.eventespresso.com/class-EEM_Attendee.html

Specifically the get_array_of_contacts_from_reg_ids() method.

Other than that it might need to be a direct query on the database.


Mohamed Rafi

May 13, 2015 at 8:21 pm

Hello Dean,
Thanks for sending this. In the file (\plugins\event-espresso-core-reg\admin_pages\registrations\Registrations_Admin_Page.core.php) I am calling the method get_array_of_contacts_from_reg_ids($reg_id); $reg_id is the reg_id array then I am getting the following error. Fatal error: Call to undefined function get_array_of_contacts_from_reg_ids() in D:\xampp\htdocs\eventesp\wp-content\plugins\event-espresso-core-reg\admin_pages\registrations\Registrations_Admin_Page.core.php on line 1110 . Please let me know how to include EE_attendee in this file. Thanks


Mohamed Rafi

May 14, 2015 at 7:36 pm

Hello Support,

Can anyone please reply.

Thanks


Dean

May 15, 2015 at 4:20 am

Hi,

Firstly, it sounds like you are editing core files, I would NOT recommend this, nor is it supported.

We recommend using filters, hooks and, if need be, pluggable functions.

You could try $variable = new EE_attendee();

If not you may require developer assistance, we have some recommended developers here: https://eventespresso.com/developers/event-espresso-pros/

Viewing 4 reply threads

The support post ‘How to retrieve user & course information with REG_ID’ 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