Support

Search results for ""

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

Filter taxonomies by 'show_ui' instead of 'public'

Currently within CPAC#get_taxonomies() you are including taxonomies that have ‘public’ set to true. I think it would be better if you included taxonomies based on their ‘show_ui’ setting, since those taxonomies are the ones that will have admin screens in wp-admin and thus should be customizable.

In a current project, I have some taxonomies set ‘public’ to false because I don’t want the front-end pages generated, but I am still showing the admin screens for those taxonomies using ‘show_ui’.

7 years, 10 months ago
Stefan van den Dungen Gronovius
Developer

Hi Grant,

Thank you very much for your input.
I will discuss this in the team and see if we can make this change or create a filter so you can change this in your own code.
You can track this issue on Github here: https://github.com/codepress/admin-columns-issues/issues/511

7 years, 10 months ago
Stefan van den Dungen Gronovius
Developer

We changed this for the upcoming release. It indeed makes sense to use ‘show_ui’ instead of ‘public’.
I believe you already found the filter to temporary fix this as a workaround?

return apply_filters( 'cac/taxonomies', $taxonomies );

7 years, 10 months ago

You must be logged in to reply to this topic.