Support

Home Forums Event Espresso Premium How to filter venue list in event details page (back-end)

How to filter venue list in event details page (back-end)

Posted: February 20, 2019 at 11:33 pm


ARAGATO

February 20, 2019 at 11:33 pm

I would like to filter the venue list on the edit event details page.
http://uploads.aragato-server.net/screenshots/201902213f2f48eb66.png

What would be the best way to do it? Is there a filter?


Tony

  • Support Staff

February 21, 2019 at 5:46 am

Hi there,

I couldn’t find a filter for that field but will double check with our developers on this.

May I ask what you want to filter on that dropdown?


ARAGATO

February 21, 2019 at 7:17 am

Ofc you may ask.
I have some extra meta data for each event that I would like to display after each event name in that dropdown list.


Tony

  • Support Staff

February 21, 2019 at 9:51 am

I’m guessing you meant Venue name above, but it turns out there is actually a filter available for this:

FHEE__EE_Form_Input_Base___construct__input_args

That filter is passed 2 variables, $input_args and the current form input object.

So here is a quick example of just setting some text on each of those values:

https://gist.github.com/Pebblo/48c3d55ed6eb8e6eb9e905ef0812f267

Just so you know, the key of that array is the ID of each of the corresponding venues, index 0 is always ‘Select a Venue’ and should be skipped.


ARAGATO

February 24, 2019 at 8:51 pm

Yes, you are right. I meant venue name above.

Your example works great. Thanks. Solved.


Tony

  • Support Staff

February 25, 2019 at 5:17 am

You’re most welcome 🙂

The support post ‘How to filter venue list in event details page (back-end)’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 7 months, 4 weeks ago ago

Topic Tags

Tagged: , , ,

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!