Support

Home Forums Event Espresso Premium add column and modify 'event overview' admin.php document

add column and modify 'event overview' admin.php document

Posted: May 23, 2014 at 4:30 pm


Eric Mourer

May 23, 2014 at 4:30 pm

thank you Dean…

would it be similar advice and process for doing this to admin.php document
event overview ?

here is previous post for reference, wanting to add ‘male/female ratio for each event to display in table

#post-95677

Hi,
Well looking at it it’s not too complicated to add in the extra column, you would need to update the table header and the rows to accommodate and then modify the datatable javascript otherwise the table will look wonky.
You would have to modify the SQL script to pull in the question data, but that wouldn’t be overly hard for an experienced PHP developer.
All this is in /wp-content/plugins/event-espresso/includes/admin-reports/event_list_attendees.php
The issue with all of this is that you will be modifying a core file. This file will get over written every time you update meaning you will have to redo the modifications.
Please note that we cannot support modified files.


Sidney Harrell

May 26, 2014 at 12:56 pm

While the preferred methods of modification are to copies of gateways or templates in the uploads folder, or the use of override-able functions added to a custom functions plugin, there are circumstances when that is not possible. If you do need to modify a core function that does not have an override-able wrapper, it is recommended that you modify the core plugin only by adding the override-able wrapper to the function, like so:

if (!function_exists('event_espresso_additional_attendees')) {
   function event_espresso_additional_attendees() {
      ...
   }
}

Then copy the function over to a custom functions plugin so that it will get loaded before the function in core and make your modifications there. You can let us know the name of the function that you added the wrapper to, and chances are that we can add the wrapper to the next version of EE3 that comes out.

The support post ‘add column and modify 'event overview' admin.php document’ 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