Support

Home Forums Event Espresso Premium Hide Admin Columns

Hide Admin Columns

Posted: June 29, 2014 at 3:33 pm

Viewing 3 reply threads


Tony O’Keefe

June 29, 2014 at 3:33 pm

Can anyone tell me where to find the default conditions for the ‘Filter: Show/Hide Columns’ menu checkboxes?

I am looking for a way to select which admin columns show and hide by default.

I note that the ‘Filter: Show/Hide Columns’ menu has some boxes checked and others unchecked by default. And that this depends on which template has loaded. Seems to me that editing these default conditions would be an easy way to select which columns are seen.

I have searched a lot of template files and the jquery.ColVis.min.js file but haven’t been able to turn up the code I need.

Any suggestions?

———————————-
Event Espresso version 3.1.36.5.P
WordPress version WP 3.9.1
———————————-


Dean

June 30, 2014 at 2:28 am

Hi Tony,

For whatever reason, the DataTables jQuery for the individual tables is located within the individual template file.

For example, for the event overview table, the jQuery is in the file /wp-content/plugins/event-espresso/includes/event-management/event_list.php

For the attendee list overview it would be here /wp-content/plugins/event-espresso/includes/admin-reports/event_list_attendees.php


Tony O’Keefe

June 30, 2014 at 6:26 pm

Hi Dean,

It helped to know I was looking in the right place.

I have found the lines to edit in these files and easily concealed the unwanted columns from my admin pages.

For anyone else wanting to achieve this here is the code:

Line 369 – \event-espresso\includes\event-management\event_list.php

{ "bVisible": false, "aTargets": [ <?php echo $org_options['use_venue_manager'] == 'Y' ? '' : '3,' ?> 4, 5 , 7 ] }

Insert the column numbers for those to want to hide after the php tags and inside the square brackets eg. ?> 4, 5, 7 ]

Many thanks once again for the great support.

  • This reply was modified 10 years, 6 months ago by Dean. Reason: code syntax highlighting


Dean

July 1, 2014 at 2:17 am

Hi Tony,

Thanks for sharing how you did it!

Viewing 3 reply threads

The support post ‘Hide Admin Columns’ 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