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
February 21, 2019 at 5:46 am
Add New Note to this Reply
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
Add New Note to this Reply
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
February 21, 2019 at 9:51 am
Add New Note to this Reply
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
Add New Note to this Reply
Yes, you are right. I meant venue name above.
Your example works great. Thanks. Solved.
Tony
February 25, 2019 at 5:17 am
Add New Note to this Reply
You’re most welcome 🙂