Black Friday
Get 35% Off Now!
Black Friday Sale Ends in
Get Admin Columns Now →

Limited: Only the first 100 new customers get 35% off! Discount will be lowered to 25% after that.

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?

1 month 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.

1 month ago
Stefan
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

1 month ago
Patty

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

1 month ago

You must be logged in to reply to this topic.