Support

Home Forums Event Espresso Premium Adding columns to the admin event list

Adding columns to the admin event list

Posted: November 21, 2014 at 5:55 am

Viewing 6 reply threads


Zoe E

November 21, 2014 at 5:55 am

Hello,
We are building a website for a client and need to display what category the event is in, in the event list on the admin area. We also need to add other columns to display certain custom fields an event has.
Now this is possible with normal custom post types but the hock you normal use is not working on.

So we need to know what hock to use too add more columns and how to get the category to show up in one of these lists.

Many Thanks.


Zoe E

November 21, 2014 at 6:47 am

Can’t find a way to edit the post?

But meant to say it is EE4 we are working on.


Lorenzo Orlando Caum

  • Support Staff

November 21, 2014 at 12:22 pm

Hi,

Are you referring to adding new metaboxes to the event editor similar to how WordPress SEO or All in One SEO might add some metaboxes to the posts editor?


Lorenzo


Zoe E

November 24, 2014 at 2:19 am

No we want to add a columns to the event list in the admin area,
Like on the screen shot i have attached below.

http://prntscr.com/59kw5w

You can do it on normal custom posts types its how wordpress seo add its columns but don’t seam to be able to do it on this plugin for the events. we juts need to know the hock to add columns please.


Dean

November 24, 2014 at 3:09 am

Hi,

There aren’t any filters/hooks for that section currently. I can put in a request to have some added, but cannot say if/when it will be actioned on.

For your information, the file that handles the overview is /wp-content/plugins/event-espresso-core-reg_445/admin_pages/events/Events_Admin_List_Table.class.php


Seth Shoultes

  • Support Staff

November 24, 2014 at 9:38 am

Hi Zoe,

I think Dean was slightly mistaken. One of our developers pointed out that the list tables inherit a parent.

There are two filters related to columns:
$_sortable = apply_filters( "FHEE_manage_{$this->screen->id}_sortable_columns", $_sortable, $this->_screen );
This filter works very similar to the corresponding filter with WP list tables.

So for the event list table the filter slug is FHEE_manage_toplevel_page_espresso_events_sortable_columns

$columns = apply_filters( 'FHEE_manage_'.$this->screen->id.'_columns', $this->_columns, $this->_screen );
This filter works very similar to the corresponding filter with WP list tables.

So for the event list table the filter slug is FHEE_manage_toplevel_page_espresso_events_columns

Most global filters for all EE list tables are found in the file core/admin/EE_Admin_List_Table.core.php


Dean

November 26, 2014 at 5:23 am

Sorry about that, I was obviously looking in the wrong place! Hopefully the above code can get you on track.

Viewing 6 reply threads

The support post ‘Adding columns to the admin event list’ 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