Support

Home Forums Event Espresso Premium Adding cusom questions to admin registration table

Adding cusom questions to admin registration table

Posted: February 14, 2017 at 5:04 pm

Viewing 1 reply thread


Craig

February 14, 2017 at 5:04 pm

Is it possible and do you have an example of how to add extra columns to the admin registration tables, specifically custom questions in EE4?


Tony

  • Support Staff

February 15, 2017 at 6:46 am

Hi there,

Yes its possible, we have filters within EE to add your own columns to the tables although it will require custom development.

You can find some details on adding your own columns here:

https://eventespresso.com/topic/adding-columns-to-the-admin-event-list/#post-129477

The registration list table filter would be: FHEE_manage_event-espresso_page_espresso_registrations_columns

Then each column fires a dynamic action hook based on the column name and screen id, this can be used to output the column details. That filter is:

do_action( 'AHEE__EE_Admin_List_Table__column_' . $column_name . '__' . $this->screen->id, $item, $this->_screen );

So if you added a column called ‘custom_question’ to the columns, you would use the action:

AHEE__EE_Admin_List_Table__column_custom_question__event-espresso_page_espresso_registrations

$item will be an EE_Registration object, which can be used to pull custom questions using our model system:

https://github.com/eventespresso/event-espresso-core/tree/master/docs/G–Model-System

A couple of examples of these hooks being used can be found here:

https://gist.github.com/joshfeck/7bfda95067ceb6f5b52ab271411a8eb2
https://gist.github.com/joshfeck/749eb378cb75466337d3eb10d1d0e162

However note that those example use a hook that is fired on the event list, not the registration list.

If you need further assistance with this I would recommend contacting a developer to help you, we have a list of developer familiar with Event Espresso here:

https://eventespresso.com/developers/event-espresso-pros/

Viewing 1 reply thread

The support post ‘Adding cusom questions to admin registration 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