Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Patty

Replace Term Id with Value in Filter

I have a case where I am using Advanced Custom Fields to select a primary/secondary category from a taxonomy field. This gets stored as the ID of the term. I am able to use the ac/column/value filter to display the term in the list, but I also need to be able to filter on these terms. The options in the dropdown show the term ids, I need it to show the term name. There doesn’t seem to be a hook to change the labels in the filter dropdown… is there one?

3 years, 11 months ago
Patty

It took some time digging through the code, but I found the filter!

'acp/filtering/dropdown_args'

it passes two arguments – filter data, and column.

3 years, 11 months ago
Stefan van den Dungen Gronovius
Developer

Sorry for the late reaction, but you indeed find the correct filter.
I like to mention the following page in our documentation section that contains all our available hooks and filter with a link to code examples.
https://docs.admincolumns.com/article/15-hooks-and-filters

3 years, 11 months ago
Patty

Yes, and sadly that filter is not listed on that page. :(

3 years, 11 months ago

You must be logged in to reply to this topic.