Posted: January 12, 2016 at 5:09 am
|
Is possible to edit the columns? we make custom code editing the fields via uploads/espresso/ but admin pages seems to funcion on a different way any suggestion? |
Hi Adria, In EE3, there are a few filter hooks where you can use the WordPress plugin API to override what’s displayed in some of the columns. Code examples follow:
You can add the above to a functions plugin or into your WordPress theme’s functions.php file. |
|
|
great got the example running, how could i get a custom meta field for the attendees? |
It depends on what your looking to get. Registrations are stored in their own table, and attendees (quite possibly better described as contacts) are stored in the posts table. So you may need to write some PHP and at the very least do a join to get info from the other table. |
|
|
thanks will try to join some tables at wp_usermeta and wp_users. And some simple way to make a filter to hide some of the attendee columns? |
Hi Adria, Like with the Screen Options tab? |
|
|
Maybe EE3 performs different i can’t see that options https://www.dropbox.com/s/9w1ejl009lhj4wh/event%20list%20attend.png?dl=0 |
Oh right you are, sorry about that. The screenshot was from Event Espresso 4. In the case of EE3, I think you can add some jQuery to pre-set the checkboxes for the column filters that get hidden/show with the jQuery dataTables jQuery plugin. |
|
|
any tip about these magic jquery? client have to hide/show everytime the fields to get the right see. |
Do you have a specific question about this? There are loads of tips about how to use jQuery in their docs: |
|
|
No, only if someone have done something similar with the order/view menu not remenbering the options. ;-D |
It’s not supposed to remember anything, but you can use jQuery to override the options when it loads the page. Does that make sense? |
|
The support post ‘Attendee Report , add remove 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.